mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
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:
parent
0e7bbdbeaf
commit
c0db6320a6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user