static int copy_to_pbr(DCAXllDecoder *s, uint8_t *data, int size, int delay)

{

    if (size > DCA_XLL_PBR_BUFFER_MAX)

        return AVERROR(ENOSPC);



    if (!s->pbr_buffer && !(s->pbr_buffer = av_malloc(DCA_XLL_PBR_BUFFER_MAX + DCA_BUFFER_PADDING_SIZE)))

        return AVERROR(ENOMEM);



    memcpy(s->pbr_buffer, data, size);

    s->pbr_length = size;

    s->pbr_delay = delay;

    return 0;

}

static int copy_to_pbr(DCAXllDecoder *s, uint8_t *data, int size, int delay)

{

    if (size > DCA_XLL_PBR_BUFFER_MAX)

        return AVERROR(ENOSPC);



    if (!s->pbr_buffer && !(s->pbr_buffer = av_malloc(DCA_XLL_PBR_BUFFER_MAX + DCA_BUFFER_PADDING_SIZE)))

        return AVERROR(ENOMEM);



    memcpy(s->pbr_buffer, data, size);

    s->pbr_length = size;

    s->pbr_delay = delay;

    return 0;

}

static int FUNC_0(DCAXllDecoder *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3)

{

    if (VAR_2 > DCA_XLL_PBR_BUFFER_MAX)

        return AVERROR(ENOSPC);



    if (!VAR_0->pbr_buffer && !(VAR_0->pbr_buffer = av_malloc(DCA_XLL_PBR_BUFFER_MAX + DCA_BUFFER_PADDING_SIZE)))

        return AVERROR(ENOMEM);



    memcpy(VAR_0->pbr_buffer, VAR_1, VAR_2);

    VAR_0->pbr_length = VAR_2;

    VAR_0->pbr_delay = VAR_3;

    return 0;

}

static int FUNC_0(DCAXllDecoder *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3)
{ if (VAR_2 > DCA_XLL_PBR_BUFFER_MAX)
return AVERROR(ENOSPC); if (!VAR_0->pbr_buffer && !(VAR_0->pbr_buffer = av_malloc(DCA_XLL_PBR_BUFFER_MAX + DCA_BUFFER_PADDING_SIZE)))
return AVERROR(ENOMEM); memcpy(VAR_0->pbr_buffer, VAR_1, VAR_2); VAR_0->pbr_length = VAR_2; VAR_0->pbr_delay = VAR_3; return 0; }