Skip to content

Commit 8365144

Browse files
authored
Merge pull request #992 from DolbyLaboratories/dolby/fix_ac4_edit_list_duration
fix ac4 edit list duration.
2 parents b4b6cac + 7adf3bb commit 8365144

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/C++/Apps/Mp4Mux/Mp4Mux.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ AddAc4Track(AP4_Movie& movie,
962962
if (!movie.GetTimeScale()) {
963963
duration = AP4_UI64(sample_count) * sample_duration;
964964
} else {
965-
duration = AP4_ConvertTime(AP4_UI64(sample_count)*sample_table->GetSampleCount(), media_time_scale, movie.GetTimeScale());
965+
duration = AP4_ConvertTime(AP4_UI64(sample_duration)*sample_table->GetSampleCount(), media_time_scale, movie.GetTimeScale());
966966
}
967967
AP4_ElstEntry new_elst_entry = AP4_ElstEntry(duration, 0, 1);
968968
new_elst->AddEntry(new_elst_entry);

0 commit comments

Comments
 (0)