[FFmpeg-cvslog] avcodec/alacenc: allocate bigger packets

Paul B Mahol git at videolan.org
Tue Aug 2 19:41:22 EEST 2016


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Jul 29 15:05:52 2016 +0200| [82b84c71b009884c8d041361027718b19922c76d] | committer: Paul B Mahol

avcodec/alacenc: allocate bigger packets

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

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

diff --git a/libavcodec/alacenc.c b/libavcodec/alacenc.c
index 9ac35f1..9095611 100644
--- a/libavcodec/alacenc.c
+++ b/libavcodec/alacenc.c
@@ -623,7 +623,7 @@ static int alac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
     else
         max_frame_size = s->max_coded_frame_size;
 
-    if ((ret = ff_alloc_packet2(avctx, avpkt, 2 * max_frame_size, 0)) < 0)
+    if ((ret = ff_alloc_packet2(avctx, avpkt, 4 * max_frame_size, 0)) < 0)
         return ret;
 
     /* use verbatim mode for compression_level 0 */



More information about the ffmpeg-cvslog mailing list