Module: libav
Branch: release/11
Commit: 22c27900d709a4074541fd5400a6037542fac025

Author:    Derek Buitenhuis <derek.buitenh...@gmail.com>
Committer: Sean McGovern <gsean...@gmail.com>
Date:      Fri Aug 26 14:30:07 2016 +0100

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.buitenh...@gmail.com>
Signed-off-by: Luca Barbato <lu_z...@gentoo.org>

---

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

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 38325d8..5b5d1ca 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1970,9 +1970,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->codec->has_b_frames = 1;
     }
 
     /* only use old uncompressed audio chunk demuxing when stts specifies it */

_______________________________________________
libav-commits mailing list
libav-commits@libav.org
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to