]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mov.c
avutil/hmac: remove gap in AVHMACType enum values
[ffmpeg] / libavformat / mov.c
index b22a1161401d1c046ffa0f5d316bdf30e50d152f..573f134d2d9fa6a727b14919cfc784f36405e030 100644 (file)
@@ -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);