[FFmpeg-cvslog] r9153 - trunk/libavformat/movenc.c

michael subversion
Wed May 30 02:08:33 CEST 2007


Author: michael
Date: Wed May 30 02:08:32 2007
New Revision: 9153

Log:
warn the user about the the mdhd problem
(this is of course not a good solution but its better than silently
generating invalid files, we should find a better solution)


Modified:
   trunk/libavformat/movenc.c

Modified: trunk/libavformat/movenc.c
==============================================================================
--- trunk/libavformat/movenc.c	(original)
+++ trunk/libavformat/movenc.c	Wed May 30 02:08:32 2007
@@ -845,6 +845,14 @@ static int mov_write_mdhd_tag(ByteIOCont
     (version == 1) ? put_be64(pb, track->trackDuration) : put_be32(pb, track->trackDuration); /* duration */
     put_be16(pb, track->language); /* language */
     put_be16(pb, 0); /* reserved (quality) */
+
+    if(version!=0 && track->mode == MODE_MOV){
+        av_log(NULL, AV_LOG_ERROR,
+            "FATAL error, file duration too long for timebase, this file will not be\n"
+            "playable with quicktime. Choose a differnt timebase or a different\n"
+            "container format\n");
+    }
+
     return 32;
 }
 




More information about the ffmpeg-cvslog mailing list