[Ffmpeg-cvslog] r6069 - trunk/libavformat/mov.c

bcoudurier subversion
Thu Aug 24 11:09:21 CEST 2006


Author: bcoudurier
Date: Thu Aug 24 11:09:20 2006
New Revision: 6069

Modified:
   trunk/libavformat/mov.c

Log:
dont set width/height for h261/h263/mpeg4 since they are oftenly wrong, let decoder init them

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	(original)
+++ trunk/libavformat/mov.c	Thu Aug 24 11:09:20 2006
@@ -1029,7 +1029,20 @@
         st->codec->sample_rate= sc->time_scale;
     }
 
+    /* special codec parameters handling */
     switch (st->codec->codec_id) {
+#ifdef CONFIG_H261_DECODER
+    case CODEC_ID_H261:
+#endif
+#ifdef CONFIG_H263_DECODER
+    case CODEC_ID_H263:
+#endif
+#ifdef CONFIG_MPEG4_DECODER
+    case CODEC_ID_MPEG4:
+#endif
+        st->codec->width= 0; /* let decoder init width/height */
+        st->codec->height= 0;
+        break;
 #ifdef CONFIG_FAAD
     case CODEC_ID_AAC:
 #endif




More information about the ffmpeg-cvslog mailing list