Commit c0db6320 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/avuienc: Use ff_alloc_packet()

This should be faster in theory for AVUI, no speed difference
meassurable though
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0e7bbdbe
...@@ -67,7 +67,7 @@ static int avui_encode_frame(AVCodecContext *avctx, AVPacket *pkt, ...@@ -67,7 +67,7 @@ static int avui_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
skip = 16; skip = 16;
} }
size = 2 * avctx->width * (avctx->height + skip) + 8 * interlaced; 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; return ret;
dst = pkt->data; dst = pkt->data;
if (!interlaced) { if (!interlaced) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment