aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-05-30 00:08:32 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-05-30 00:08:32 +0000
commitdb8f4a92c9592016ed925814c88b67337339af33 (patch)
tree8ea767c19d6ff0c34614887f511031e464c3a610
parent1e6b5700872f6c2729d621ef8e10c1a2873eefd4 (diff)
downloadffmpeg-db8f4a92c9592016ed925814c88b67337339af33.tar.gz
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) Originally committed as revision 9153 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/movenc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 6cde293c90..a9d989b330 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -845,6 +845,14 @@ static int mov_write_mdhd_tag(ByteIOContext *pb, MOVTrack* track)
(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;
}