aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2016-08-25 16:58:15 +0100
committerPaul B Mahol <onemda@gmail.com>2016-08-25 21:12:30 +0200
commit425be3c810e019c7a1298be7219536fa28f7ba49 (patch)
tree28ba40d61d572ece8faa3b4b86918743b986466f
parent04f8d312877ffdcb816c7ff74b94eaa06dd6e1f0 (diff)
downloadffmpeg-425be3c810e019c7a1298be7219536fa28f7ba49.tar.gz
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@gmail.com>
-rw-r--r--libavformat/mov.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 54c63ad6c8..bc11fb8ce0 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2801,9 +2801,6 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
empty_duration = av_rescale(empty_duration, sc->time_scale, mov->time_scale);
sc->time_offset = start_time - empty_duration;
current_dts = -sc->time_offset;
- if (sc->ctts_count>0 && sc->stts_count>0 &&
- sc->ctts_data[0].duration / FFMAX(sc->stts_data[0].duration, 1) > 16)
- st->codecpar->video_delay = 1;
}
if (!unsupported && st->codecpar->codec_id == AV_CODEC_ID_AAC && start_time > 0)