]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vp6.c
avcodec/parser: Remove deprecated av_parser_change
[ffmpeg] / libavcodec / vp6.c
index 977fcb7076465051ac0fbc40c429851afb517197..e5dec19f509dabb090171a2d7e1dc0d8bfc05063 100644 (file)
@@ -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;
     }