Commit 3728603f authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/ffv1enc: update buffer check for 16bps

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 904a2864
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment