diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-03-13 17:52:08 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-03-17 22:36:48 +0100 |
commit | 9ade26ee915ec16bc6e06beb337ead2c3bc13c2a (patch) | |
tree | 135a36bfd6d96f2555a54f921600c647998f3c6e | |
parent | 0afd8f12e974c14112c6c3d8ae363c074b963711 (diff) | |
download | ffmpeg-9ade26ee915ec16bc6e06beb337ead2c3bc13c2a.tar.gz |
lavf: remove a pointless check.
Timebase is already checked in avpriv_set_pts_info().
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 863997d0a1..1fea72fc69 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -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; } |