]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vp5.c
libavformat/rtsp: return error if rtsp_hd_out is null instead of crash
[ffmpeg] / libavcodec / vp5.c
index 49988b8b7685fa23f6aa99ff8ad711319726b172..0fca2829180fd9433fb8cb9aaa326d0576939c1b 100644 (file)
@@ -183,7 +183,7 @@ static int vp5_parse_coeff(VP56Context *s)
     int b, i, cg, idx, ctx, ctx_last;
     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 vp5_parse_coeff\n");
         return AVERROR_INVALIDDATA;
     }