diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-08-05 23:25:27 +0200 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-08-06 00:04:36 +0200 |
commit | 16dc5f20505d39042d06bc4b09a01e8a4558fa2b (patch) | |
tree | 774929bc39ffafaa20d7e95d5753ba920066c2c4 /libavformat/utils.c | |
parent | ad55244c9674bc52f383a967e0d1502e8a8928e9 (diff) | |
download | ffmpeg-16dc5f20505d39042d06bc4b09a01e8a4558fa2b.tar.gz |
Replace various inlined inverse AVRational with av_inv_q().
Diffstat (limited to 'libavformat/utils.c')
-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 af2575aa51..a8fbbe1ac6 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2670,7 +2670,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) if (st->time_base.den > 0) t = av_rescale_q(st->info->codec_info_duration, st->time_base, AV_TIME_BASE_Q); if (st->avg_frame_rate.num > 0) - t = FFMAX(t, av_rescale_q(st->codec_info_nb_frames, (AVRational){st->avg_frame_rate.den, st->avg_frame_rate.num}, AV_TIME_BASE_Q)); + t = FFMAX(t, av_rescale_q(st->codec_info_nb_frames, av_inv_q(st->avg_frame_rate), AV_TIME_BASE_Q)); if (t >= ic->max_analyze_duration) { av_log(ic, AV_LOG_WARNING, "max_analyze_duration %d reached at %"PRId64"\n", ic->max_analyze_duration, t); |