X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=libavcodec%2Fvp6.c;h=e5dec19f509dabb090171a2d7e1dc0d8bfc05063;hb=930391e5988abe126d29c5e9b09fab459e0b8936;hp=977fcb7076465051ac0fbc40c429851afb517197;hpb=3e076faf3b86bb16f746e7c9b0cf3dac5f9a851a;p=ffmpeg diff --git a/libavcodec/vp6.c b/libavcodec/vp6.c index 977fcb70764..e5dec19f509 100644 --- a/libavcodec/vp6.c +++ b/libavcodec/vp6.c @@ -473,7 +473,7 @@ static int vp6_parse_coeff(VP56Context *s) int b, i, cg, idx, ctx; int pt = 0; /* plane type (0 for Y, 1 for U or V) */ - if (c->end <= c->buffer && c->bits >= 0) { + if (vpX_rac_is_end(c)) { av_log(s->avctx, AV_LOG_ERROR, "End of AC stream reached in vp6_parse_coeff\n"); return AVERROR_INVALIDDATA; }