avcodec/ffv1enc: update buffer check for 16bps
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 9 Sep 2013 15:58:18 +0000 (17:58 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 9 Sep 2013 18:19:17 +0000 (20:19 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ffv1enc.c

index 7c1b30a..0af20ed 100644 (file)
@@ -275,7 +275,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 AVERROR_INVALIDDATA;
         }