[FFmpeg-cvslog] lavf: remove a pointless check.

Anton Khirnov git at videolan.org
Sun Mar 18 23:57:48 CET 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Mar 13 17:52:08 2012 +0100| [9ade26ee915ec16bc6e06beb337ead2c3bc13c2a] | committer: Anton Khirnov

lavf: remove a pointless check.

Timebase is already checked in avpriv_set_pts_info().

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9ade26ee915ec16bc6e06beb337ead2c3bc13c2a
---

 libavformat/utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 863997d..1fea72f 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;
             }



More information about the ffmpeg-cvslog mailing list