int av_new_packet(AVPacket *pkt, int size)

{

    uint8_t *data;

    if((unsigned)size > (unsigned)size + FF_INPUT_BUFFER_PADDING_SIZE)

        return AVERROR(ENOMEM);

    data = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE);

    if (!data)

        return AVERROR(ENOMEM);

    memset(data + size, 0, FF_INPUT_BUFFER_PADDING_SIZE);



    av_init_packet(pkt);

    pkt->data = data;

    pkt->size = size;

    pkt->destruct = av_destruct_packet;

    return 0;

}

int av_new_packet(AVPacket *pkt, int size)

{

    uint8_t *data;

    if((unsigned)size > (unsigned)size + FF_INPUT_BUFFER_PADDING_SIZE)

        return AVERROR(ENOMEM);

    data = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE);

    if (!data)

        return AVERROR(ENOMEM);

    memset(data + size, 0, FF_INPUT_BUFFER_PADDING_SIZE);



    av_init_packet(pkt);

    pkt->data = data;

    pkt->size = size;

    pkt->destruct = av_destruct_packet;

    return 0;

}

    uint8_t *data;     if((unsigned)size > (unsigned)size + FF_INPUT_BUFFER_PADDING_SIZE)         return AVERROR(ENOMEM);     if (!data)         return AVERROR(ENOMEM);
int FUNC_0(AVPacket *VAR_0, int VAR_1)

{

    uint8_t *data;

    if((unsigned)VAR_1 > (unsigned)VAR_1 + FF_INPUT_BUFFER_PADDING_SIZE)

        return AVERROR(ENOMEM);

    data = av_malloc(VAR_1 + FF_INPUT_BUFFER_PADDING_SIZE);

    if (!data)

        return AVERROR(ENOMEM);

    memset(data + VAR_1, 0, FF_INPUT_BUFFER_PADDING_SIZE);



    av_init_packet(VAR_0);

    VAR_0->data = data;

    VAR_0->VAR_1 = VAR_1;

    VAR_0->destruct = av_destruct_packet;

    return 0;

}

int FUNC_0(AVPacket *VAR_0, int VAR_1)
{ uint8_t *data; if((unsigned)VAR_1 > (unsigned)VAR_1 + FF_INPUT_BUFFER_PADDING_SIZE)
return AVERROR(ENOMEM); data = av_malloc(VAR_1 + FF_INPUT_BUFFER_PADDING_SIZE); if (!data)
return AVERROR(ENOMEM); memset(data + VAR_1, 0, FF_INPUT_BUFFER_PADDING_SIZE); av_init_packet(VAR_0); VAR_0->data = data; VAR_0->VAR_1 = VAR_1; VAR_0->destruct = av_destruct_packet; return 0; }