avcodec/avuienc: Use ff_alloc_packet()

This should be faster in theory for AVUI, no speed difference
meassurable though

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-07-05 21:56:48 +02:00
parent 0e7bbdbeaf
commit c0db6320a6
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ static int avui_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
skip = 16;
}
size = 2 * avctx->width * (avctx->height + skip) + 8 * interlaced;
if ((ret = ff_alloc_packet2(avctx, pkt, size)) < 0)
if ((ret = ff_alloc_packet(pkt, size)) < 0)
return ret;
dst = pkt->data;
if (!interlaced) {