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
This commit is contained in:
Luca Barbato 2012-12-13 16:20:19 +01:00
parent 6d5b009267
commit be75fed975
1 changed files with 2 additions and 2 deletions

View File

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