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>
This commit is contained in:
parent
87cc7e8d4e
commit
12673bb253
3 changed files with 10 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue