diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2007-01-24 17:47:42 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2007-01-24 17:47:42 +0000 |
commit | 5cca6bc3cd831597b728346a1ebe61dc6c2fead1 (patch) | |
tree | dbe6ece4d3dd2a1e9c6fdc5913446956e2c45f49 | |
parent | 9d57fd9be5cb85b046011510517ba2485d9c81d1 (diff) | |
download | ffmpeg-5cca6bc3cd831597b728346a1ebe61dc6c2fead1.tar.gz |
Fail on VC-1 interlaced streams
Originally committed as revision 7693 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/vc1.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c index 124e5d0b64..ceb534e12f 100644 --- a/libavcodec/vc1.c +++ b/libavcodec/vc1.c @@ -1268,6 +1268,10 @@ static int decode_sequence_header_adv(VC1Context *v, GetBitContext *gb) v->s.avctx->coded_height = (get_bits(gb, 12) + 1) << 1; v->broadcast = get_bits1(gb); v->interlace = get_bits1(gb); + if(v->interlace){ + av_log(v->s.avctx, AV_LOG_ERROR, "Interlaced mode not supported (yet)\n"); + return -1; + } v->tfcntrflag = get_bits1(gb); v->finterpflag = get_bits1(gb); get_bits1(gb); // reserved |