]> git.sesse.net Git - ffmpeg/commitdiff
libavformat/utils: Fix misleading indent
authorChris Miceli <chris@miceli.net.au>
Tue, 13 Oct 2020 04:59:06 +0000 (15:59 +1100)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 20 Oct 2020 13:33:13 +0000 (15:33 +0200)
6f69f7a8bf6a0d013985578df2ef42ee6b1c7994 introduced this and it was part
of a very large merging of refactoring. Current behaviour is what is
reflected by this indenting change, however my understanding of timing
is such that this correct behaviour.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/utils.c

index a2e701ea1a6c38d8f1fb29ffa4f016db45e5bb56..e8335a601fee5077ae09f447176f5bbd3aa2928e 100644 (file)
@@ -1186,8 +1186,7 @@ static void update_initial_durations(AVFormatContext *s, AVStream *st,
             pktl->pkt.dts = cur_dts;
             if (!st->internal->avctx->has_b_frames)
                 pktl->pkt.pts = cur_dts;
-//            if (st->codecpar->codec_type != AVMEDIA_TYPE_AUDIO)
-                pktl->pkt.duration = duration;
+            pktl->pkt.duration = duration;
         } else
             break;
         cur_dts = pktl->pkt.dts + pktl->pkt.duration;