[FFmpeg-cvslog] vp6: properly fail on unsupported feature
Luca Barbato
git at videolan.org
Fri Dec 14 13:56:11 CET 2012
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Thu Dec 13 16:20:19 2012 +0100| [be75fed9755c1285ba084574aff2d7ee0f81110d] | committer: Luca Barbato
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 at libav.org
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=be75fed9755c1285ba084574aff2d7ee0f81110d
---
libavcodec/vp6.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/vp6.c b/libavcodec/vp6.c
index 826b777..c3428fe 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;
More information about the ffmpeg-cvslog
mailing list