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

Michael Niedermayer git at videolan.org
Mon Aug 3 14:46:04 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon Aug  3 13:20:41 2015 +0200| [fdc2385ca96c99aa939380212d9046abe2e45262] | committer: Michael Niedermayer

avcodec/libwebpenc_animencoder: Use ff_alloc_packet2()

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

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

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

diff --git a/libavcodec/libwebpenc_animencoder.c b/libavcodec/libwebpenc_animencoder.c
index e050647..d7437a9 100644
--- a/libavcodec/libwebpenc_animencoder.c
+++ b/libavcodec/libwebpenc_animencoder.c
@@ -66,7 +66,7 @@ static int libwebp_anim_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
             WebPData assembled_data = { 0 };
             ret = WebPAnimEncoderAssemble(s->enc, &assembled_data);
             if (ret) {
-                ret = ff_alloc_packet(pkt, assembled_data.size);
+                ret = ff_alloc_packet2(avctx, pkt, assembled_data.size, assembled_data.size);
                 if (ret < 0)
                     return ret;
                 memcpy(pkt->data, assembled_data.bytes, assembled_data.size);



More information about the ffmpeg-cvslog mailing list