diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2012-12-13 16:20:19 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-12-13 17:05:45 +0100 |
commit | be75fed9755c1285ba084574aff2d7ee0f81110d (patch) | |
tree | ee63490c856a713985530d1570705c2c282cadc6 /libavcodec | |
parent | 6d5b0092678b2a95dfe209a207550bd2fe9ef646 (diff) | |
download | ffmpeg-be75fed9755c1285ba084574aff2d7ee0f81110d.tar.gz |
vp6: properly fail on unsupported feature
Interlacing is not supported at all and mismanaged down the normal
codepaths causing possible buffer management issues.
CC: libav-stable@libav.org
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/vp6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vp6.c b/libavcodec/vp6.c index 826b77741c..c3428fef5f 100644 --- a/libavcodec/vp6.c +++ b/libavcodec/vp6.c @@ -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; |