[FFmpeg-cvslog] avcodec/ffv1enc: update buffer check for 16bps

Michael Niedermayer git at videolan.org
Sat Mar 8 16:21:05 CET 2014


ffmpeg | branch: release/0.11 | Michael Niedermayer <michaelni at gmx.at> | Mon Sep  9 17:58:18 2013 +0200| [b650d5376c82e5db8f76809417a601e485991487] | committer: Michael Niedermayer

avcodec/ffv1enc: update buffer check for 16bps

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 3728603f1854b5c79d1a64dd3b41b80640ef1e7f)

Conflicts:

	libavcodec/ffv1enc.c
(cherry picked from commit c900c6e5c26cd86cf34f9c8d4347cedbd01f3935)

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

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

diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index 4629352..753e961 100644
--- a/libavcodec/ffv1.c
+++ b/libavcodec/ffv1.c
@@ -467,7 +467,7 @@ static av_always_inline int encode_line(FFV1Context *s, int w,
     int run_mode=0;
 
     if(s->ac){
-        if(c->bytestream_end - c->bytestream < w*20){
+        if(c->bytestream_end - c->bytestream < w*35){
             av_log(s->avctx, AV_LOG_ERROR, "encoded frame too large\n");
             return -1;
         }



More information about the ffmpeg-cvslog mailing list