[FFmpeg-cvslog] avcodec/shorten: make max frame size bigger if custom block size was used

Paul B Mahol git at videolan.org
Wed Apr 27 09:11:16 CEST 2016


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Apr 27 09:08:45 2016 +0200| [1f62a6e7803e4b354b2f1a7c9a5d617efa39999b] | committer: Paul B Mahol

avcodec/shorten: make max frame size bigger if custom block size was used

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

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

diff --git a/libavcodec/shorten.c b/libavcodec/shorten.c
index 061a74b..e4cef61 100644
--- a/libavcodec/shorten.c
+++ b/libavcodec/shorten.c
@@ -558,7 +558,7 @@ static int shorten_decode_frame(AVCodecContext *avctx, void *data,
             int max_framesize;
             void *tmp_ptr;
 
-            max_framesize = FFMAX(s->max_framesize, s->blocksize * s->channels * 2);
+            max_framesize = FFMAX(s->max_framesize, s->blocksize * s->channels * 8);
             tmp_ptr = av_fast_realloc(s->bitstream, &s->allocated_bitstream_size,
                                       max_framesize + AV_INPUT_BUFFER_PADDING_SIZE);
             if (!tmp_ptr) {



More information about the ffmpeg-cvslog mailing list