ffmpeg | branch: master | Rico Tzschichholz <ric...@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;

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to