warning is only valid for mov
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 30 Jan 2008 13:22:04 +0000 (13:22 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 30 Jan 2008 13:22:04 +0000 (13:22 +0000)
Originally committed as revision 11667 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/movenc.c

index ec700c1..b94b674 100644 (file)
@@ -1464,7 +1464,7 @@ static int mov_write_header(AVFormatContext *s)
         if(st->codec->codec_type == CODEC_TYPE_VIDEO){
             track->timescale = st->codec->time_base.den;
             av_set_pts_info(st, 64, 1, st->codec->time_base.den);
-            if (track->timescale > 100000)
+            if (track->mode == MODE_MOV && track->timescale > 100000)
                 av_log(NULL, AV_LOG_WARNING,
                        "WARNING codec timebase is very high. If duration is too long,\n"
                        "file may not be playable by quicktime. Specify a shorter timebase\n"