Mercurial > libavcodec.hg
diff vc1.c @ 10379:d580026275a1 libavcodec
Print error message when true interlaced VC-1 frames are encountered
to inform user why decoder produces no output.
author | kostya |
---|---|
date | Sat, 10 Oct 2009 07:35:31 +0000 |
parents | 7a116de63777 |
children | 7dd2a45249a9 |
line wrap: on
line diff
--- a/vc1.c Fri Oct 09 15:38:44 2009 +0000 +++ b/vc1.c Sat Oct 10 07:35:31 2009 +0000 @@ -781,7 +781,11 @@ 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: