diff options
author | James Almer <jamrial@gmail.com> | 2017-11-24 17:46:16 -0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-04-13 01:20:14 +0200 |
commit | 3e3704da0c71d5254b986300f610b0f0217f2023 (patch) | |
tree | e667f444b6c078cc9a2f7453163e1eaa32982d19 /libavformat | |
parent | 6de499caed33f26cfce32f0ddd74b2a518f60402 (diff) | |
download | ffmpeg-3e3704da0c71d5254b986300f610b0f0217f2023.tar.gz |
avformat/utils: fix mixed declarations and code
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 31de45d20b1ff90d4baf7c5a65e88f582efdb2a6)
Diffstat (limited to 'libavformat')
-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 2053c3f755..0749151ee3 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1732,10 +1732,10 @@ int av_read_frame(AVFormatContext *s, AVPacket *pkt) if (next_pkt->dts != AV_NOPTS_VALUE) { int wrap_bits = s->streams[next_pkt->stream_index]->pts_wrap_bits; - av_assert2(wrap_bits <= 64); // last dts seen for this stream. if any of packets following // current one had no dts, we will set this to AV_NOPTS_VALUE. int64_t last_dts = next_pkt->dts; + av_assert2(wrap_bits <= 64); while (pktl && next_pkt->pts == AV_NOPTS_VALUE) { if (pktl->pkt.stream_index == next_pkt->stream_index && av_compare_mod(next_pkt->dts, pktl->pkt.dts, 2ULL << (wrap_bits - 1)) < 0) { |