diff options
author | Dale Curtis <dalecurtis@chromium.org> | 2017-10-16 14:17:35 -0700 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-10-21 03:12:43 +0200 |
commit | a5fd8aa45b11c10613e6e576033a6b5a16b9cbb9 (patch) | |
tree | 229b213eb769f7ee601b88da54ceb8040884ffaf /libavformat/mov.c | |
parent | 279dc407163ee85d530a15582052a47436110a7b (diff) |
avformat/mov: Set start_pad correctly in mov_fix_index()
Sets the correct start padding value when an edit list is present.
A new fate test is added, fate-mov-440hz-10ms, to ensure this is
handled correctly.
Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Reviewed-by: Sasi Inguva <isasi-at-google.com@ffmpeg.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index b22a116140..573f134d2d 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -3249,7 +3249,6 @@ static void mov_fix_index(MOVContext *mov, AVStream *st) // Increment skip_samples for the first non-zero audio edit list if (first_non_zero_audio_edit > 0 && st->codecpar->codec_id != AV_CODEC_ID_VORBIS) { st->skip_samples += frame_duration; - msc->start_pad = st->skip_samples; } } } @@ -3323,6 +3322,7 @@ static void mov_fix_index(MOVContext *mov, AVStream *st) // Update av stream length st->duration = edit_list_dts_entry_end - start_dts; + msc->start_pad = st->skip_samples; // Free the old index and the old CTTS structures av_free(e_old); |