You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +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:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user