]> git.sesse.net Git - ffmpeg/commitdiff
mov: Remove old b-frame/video delay heuristic
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>
Fri, 26 Aug 2016 13:30:07 +0000 (14:30 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 29 Aug 2016 13:31:03 +0000 (15:31 +0200)
This was added before edts support existed, and is no longer
valid.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/mov.c

index 89c2c23fe47208b04c9a0148500157373aa453fe..ca49716026ee6ffe5f2ddcd5cd4ae0a6ace3d9d2 100644 (file)
@@ -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 */