diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-10-10 07:35:31 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-10-10 07:35:31 +0000 |
commit | 9e553f7acc2f378389a37af214ba5f1a4d99365f (patch) | |
tree | 946d81ed4c6e172e578a8c44e6711ac7cf0b7b1a /libavcodec/vc1.c | |
parent | 54eb4ae0a2da947d3c509a7eaaeb91a86d9fa2ee (diff) | |
download | ffmpeg-9e553f7acc2f378389a37af214ba5f1a4d99365f.tar.gz |
Print error message when true interlaced VC-1 frames are encountered
to inform user why decoder produces no output.
Originally committed as revision 20196 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vc1.c')
-rw-r--r-- | libavcodec/vc1.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c index ec6a660ad9..648541e2b5 100644 --- a/libavcodec/vc1.c +++ b/libavcodec/vc1.c @@ -781,7 +781,11 @@ int vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb) if(v->interlace){ v->fcm = decode012(gb); - if(v->fcm) return -1; // interlaced frames/fields are not implemented + if(v->fcm){ + if(!v->warn_interlaced++) + av_log(v->s.avctx, AV_LOG_ERROR, "Interlaced frames/fields support is not implemented\n"); + return -1; + } } switch(get_unary(gb, 0, 4)) { case 0: |