vp6: properly fail on unsupported feature
authorLuca Barbato <lu_zero@gentoo.org>
Thu, 13 Dec 2012 15:20:19 +0000 (16:20 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Thu, 13 Dec 2012 16:05:45 +0000 (17:05 +0100)
Interlacing is not supported at all and mismanaged down the normal
codepaths causing possible buffer management issues.

CC: libav-stable@libav.org
libavcodec/vp6.c

index 826b777..c3428fe 100644 (file)
@@ -64,8 +64,8 @@ static int vp6_parse_header(VP56Context *s, const uint8_t *buf, int buf_size,
             return 0;
         s->filter_header = buf[1] & 0x06;
         if (buf[1] & 1) {
-            av_log(s->avctx, AV_LOG_ERROR, "interlacing not supported\n");
-            return 0;
+            av_log_missing_feature(s->avctx, "Interlacing", 0);
+            return AVERROR_PATCHWELCOME;
         }
         if (separated_coeff || !s->filter_header) {
             coeff_offset = AV_RB16(buf+2) - 2;