[FFmpeg-cvslog] libshine: Fix faulty ff_alloc_packet2 usage

Rico Tzschichholz git at videolan.org
Sun Aug 2 19:03:14 CEST 2015


ffmpeg | branch: master | Rico Tzschichholz <ricotz at ubuntu.com> | Sun Aug  2 18:11:03 2015 +0200| [a0044beccac88d86840aa7f03f885b7fea89b20a] | committer: Clément Bœsch

libshine: Fix faulty ff_alloc_packet2 usage

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

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

diff --git a/libavcodec/libshine.c b/libavcodec/libshine.c
index b9f69a1..f4cf598 100644
--- a/libavcodec/libshine.c
+++ b/libavcodec/libshine.c
@@ -102,7 +102,7 @@ static int libshine_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
 
     len = hdr.frame_size;
     if (len <= s->buffer_index) {
-        if ((ret = ff_alloc_packet2(avctx, avpkt, len)))
+        if ((ret = ff_alloc_packet2(avctx, avpkt, len, 0)))
             return ret;
         memcpy(avpkt->data, s->buffer, len);
         s->buffer_index -= len;



More information about the ffmpeg-cvslog mailing list