[FFmpeg-cvslog] avcodec/avuienc: Use ff_alloc_packet()

Michael Niedermayer git at videolan.org
Sun Jul 5 23:08:32 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jul  5 21:56:48 2015 +0200| [c0db6320a639db41802995501c9607407f0e8ed8] | committer: Michael Niedermayer

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 at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c0db6320a639db41802995501c9607407f0e8ed8
---

 libavcodec/avuienc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/avuienc.c b/libavcodec/avuienc.c
index 017619b..b32f433 100644
--- a/libavcodec/avuienc.c
+++ b/libavcodec/avuienc.c
@@ -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) {



More information about the ffmpeg-cvslog mailing list