lavf: remove a pointless check.
authorAnton Khirnov <anton@khirnov.net>
Tue, 13 Mar 2012 16:52:08 +0000 (17:52 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sat, 17 Mar 2012 21:36:48 +0000 (22:36 +0100)
Timebase is already checked in avpriv_set_pts_info().

libavformat/utils.c

index 863997d..1fea72f 100644 (file)
@@ -2356,7 +2356,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
 
         st = ic->streams[pkt->stream_index];
         if (st->codec_info_nb_frames>1) {
-            if (st->time_base.den > 0 && av_rescale_q(st->info->codec_info_duration, st->time_base, AV_TIME_BASE_Q) >= ic->max_analyze_duration) {
+            if (av_rescale_q(st->info->codec_info_duration, st->time_base, AV_TIME_BASE_Q) >= ic->max_analyze_duration) {
                 av_log(ic, AV_LOG_WARNING, "max_analyze_duration reached\n");
                 break;
             }