[FFmpeg-cvslog] r20196 - in trunk/libavcodec: vc1.c vc1.h

kostya subversion
Sat Oct 10 09:35:32 CEST 2009


Author: kostya
Date: Sat Oct 10 09:35:31 2009
New Revision: 20196

Log:
Print error message when true interlaced VC-1 frames are encountered
to inform user why decoder produces no output.

Modified:
   trunk/libavcodec/vc1.c
   trunk/libavcodec/vc1.h

Modified: trunk/libavcodec/vc1.c
==============================================================================
--- trunk/libavcodec/vc1.c	Fri Oct  9 20:29:19 2009	(r20195)
+++ trunk/libavcodec/vc1.c	Sat Oct 10 09:35:31 2009	(r20196)
@@ -781,7 +781,11 @@ int vc1_parse_frame_header_adv(VC1Contex
 
     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:

Modified: trunk/libavcodec/vc1.h
==============================================================================
--- trunk/libavcodec/vc1.h	Fri Oct  9 20:29:19 2009	(r20195)
+++ trunk/libavcodec/vc1.h	Sat Oct 10 09:35:31 2009	(r20196)
@@ -312,6 +312,8 @@ typedef struct VC1Context{
     uint8_t closed_entry;       ///< Closed entry point flag (CLOSED_ENTRY syntax element)
 
     int parse_only;             ///< Context is used within parser
+
+    int warn_interlaced;
 } VC1Context;
 
 /** Find VC-1 marker in buffer



More information about the ffmpeg-cvslog mailing list