X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fmov.c;h=573f134d2d9fa6a727b14919cfc784f36405e030;hb=1eb01cca6f70fcd690fb72d55a0a7317672508fd;hp=b22a1161401d1c046ffa0f5d316bdf30e50d152f;hpb=60aa56fdf0b112874a2c5bf9987c7937c3b2e72a;p=ffmpeg diff --git a/libavformat/mov.c b/libavformat/mov.c index b22a1161401..573f134d2d9 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);