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

Paul B Mahol git at videolan.org
Sat Aug 6 00:16:43 EEST 2016


ffmpeg | branch: release/3.1 | Paul B Mahol <onemda at gmail.com> | Fri Jul 29 15:05:52 2016 +0200| [46732e6a55a4fd25dc599073598b15bde1c2be15] | committer: Carl Eugen Hoyos

avcodec/alacenc: allocate bigger packets
(cherry picked from commit 82b84c71b009884c8d041361027718b19922c76d)

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

 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