comparison 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
comparison
equal deleted inserted replaced
10378:03b0316b9ead 10379:d580026275a1
779 779
780 v->p_frame_skipped = 0; 780 v->p_frame_skipped = 0;
781 781
782 if(v->interlace){ 782 if(v->interlace){
783 v->fcm = decode012(gb); 783 v->fcm = decode012(gb);
784 if(v->fcm) return -1; // interlaced frames/fields are not implemented 784 if(v->fcm){
785 if(!v->warn_interlaced++)
786 av_log(v->s.avctx, AV_LOG_ERROR, "Interlaced frames/fields support is not implemented\n");
787 return -1;
788 }
785 } 789 }
786 switch(get_unary(gb, 0, 4)) { 790 switch(get_unary(gb, 0, 4)) {
787 case 0: 791 case 0:
788 v->s.pict_type = FF_P_TYPE; 792 v->s.pict_type = FF_P_TYPE;
789 break; 793 break;