[FFmpeg-cvslog] mov: Remove old b-frame/video delay heuristic

Derek Buitenhuis git at videolan.org
Mon Mar 20 09:09:49 EET 2017


ffmpeg | branch: master | Derek Buitenhuis <derek.buitenhuis at gmail.com> | Fri Aug 26 14:30:07 2016 +0100| [8db804e8f549d5b86a1edf62736e0ef80f160da9] | committer: Luca Barbato

mov: Remove old b-frame/video delay heuristic

This was added before edts support existed, and is no longer
valid.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

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

 libavformat/mov.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 89c2c23..ca49716 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2306,9 +2306,6 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
         if (sc->time_offset < 0)
             sc->time_offset = av_rescale(sc->time_offset, sc->time_scale, mov->time_scale);
         current_dts = -sc->time_offset;
-        if (sc->ctts_data && sc->stts_data && sc->stts_data[0].duration &&
-            sc->ctts_data[0].duration / sc->stts_data[0].duration > 16)
-            st->internal->avctx->has_b_frames = 1;
     }
 
     /* only use old uncompressed audio chunk demuxing when stts specifies it */



More information about the ffmpeg-cvslog mailing list