[FFmpeg-cvslog] libavformat/utils: use FFMIN() where possible
Michael Niedermayer
git at videolan.org
Wed Sep 7 00:43:38 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Sep 7 00:13:09 2011 +0200| [effbeff5035dc4050c0229e10ba4fae996c280e5] | committer: Michael Niedermayer
libavformat/utils: use FFMIN() where possible
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=effbeff5035dc4050c0229e10ba4fae996c280e5
---
libavformat/utils.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index c657279..f261308 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -3237,8 +3237,7 @@ int av_interleave_packet_per_dts(AVFormatContext *s, AVPacket *out, AVPacket *pk
av_rescale_q(s->packet_buffer->pkt.dts,
s->streams[s->packet_buffer->pkt.stream_index]->time_base,
AV_TIME_BASE_Q);
- if (delta_dts < delta_dts_min)
- delta_dts_min = delta_dts;
+ delta_dts_min = FFMIN(delta_dts_min, delta_dts);
++stream_count;
} else {
if(s->streams[i]->codec->codec_type == AVMEDIA_TYPE_SUBTITLE)
More information about the ffmpeg-cvslog
mailing list