aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorSasi Inguva <isasi@google.com>2018-08-06 16:28:50 -0700
committerMichael Niedermayer <michael@niedermayer.cc>2018-08-11 02:37:42 +0200
commit12673bb25342c772e1bf5fd2adebd85f97dc616e (patch)
tree73b149ffb23600325a13f25ad19bb21b94ab4043 /libavformat
parent87cc7e8d4ef8fa643d8d4822525b9c95cc9e7307 (diff)
downloadffmpeg-12673bb25342c772e1bf5fd2adebd85f97dc616e.tar.gz
lavf/mov.c: Set start_time for all streams (in case of edit lists).
Fixes vorbis mp4 audio files, with edit list specified. Since st->skip_samples is not set in case of vorbis , ffmpeg computes the start_time as negative. Signed-off-by: Sasi Inguva <isasi@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mov.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 6885ef3b4b..c863047d79 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -3686,9 +3686,9 @@ static void mov_fix_index(MOVContext *mov, AVStream *st)
st->index_entries[i].timestamp -= msc->min_corrected_pts;
}
}
- // Start time should be equal to zero or the duration of any empty edits.
- st->start_time = empty_edits_sum_duration;
}
+ // Start time should be equal to zero or the duration of any empty edits.
+ st->start_time = empty_edits_sum_duration;
// Update av stream length, if it ends up shorter than the track's media duration
st->duration = FFMIN(st->duration, edit_list_dts_entry_end - start_dts);