[FFmpeg-cvslog] avcodec/libwebpenc: Use ff_alloc_packet2()

Michael Niedermayer git at videolan.org
Sun Aug 2 21:49:38 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun Aug  2 20:58:31 2015 +0200| [7e9cd4e100086c187c7ad5d8953be3ef282ab497] | committer: Michael Niedermayer

avcodec/libwebpenc: Use ff_alloc_packet2()

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

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

diff --git a/libavcodec/libwebpenc.c b/libavcodec/libwebpenc.c
index db96e16..0bcf628 100644
--- a/libavcodec/libwebpenc.c
+++ b/libavcodec/libwebpenc.c
@@ -57,7 +57,7 @@ static int libwebp_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
         goto end;
     }
 
-    ret = ff_alloc_packet(pkt, mw.size);
+    ret = ff_alloc_packet2(avctx, pkt, mw.size, mw.size);
     if (ret < 0)
         goto end;
     memcpy(pkt->data, mw.mem, mw.size);



More information about the ffmpeg-cvslog mailing list