Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 3728603f1854b5c79d1a64dd3b41b80640ef1e7f)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
... | ... |
@@ -275,7 +275,7 @@ static av_always_inline int encode_line(FFV1Context *s, int w, |
275 | 275 |
int run_mode = 0; |
276 | 276 |
|
277 | 277 |
if (s->ac) { |
278 |
- if (c->bytestream_end - c->bytestream < w * 20) { |
|
278 |
+ if (c->bytestream_end - c->bytestream < w * 35) { |
|
279 | 279 |
av_log(s->avctx, AV_LOG_ERROR, "encoded frame too large\n"); |
280 | 280 |
return AVERROR_INVALIDDATA; |
281 | 281 |
} |