Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix edit list duration typo for AC3, EC3 and AC4. #973

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Source/C++/Apps/Mp4Mux/Mp4Mux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ AddAc3Track(AP4_Movie& movie,
if (!movie.GetTimeScale()) {
duration = sample_count * 1536;
} else {
duration = AP4_ConvertTime(1000*sample_table->GetSampleCount(), sample_rate, movie.GetTimeScale());
duration = AP4_ConvertTime(1536*sample_table->GetSampleCount(), sample_rate, movie.GetTimeScale());
}
AP4_ElstEntry new_elst_entry = AP4_ElstEntry(duration, 0, 1);
new_elst->AddEntry(new_elst_entry);
Expand Down Expand Up @@ -814,7 +814,7 @@ AddEac3Track(AP4_Movie& movie,
if (!movie.GetTimeScale()) {
duration = sample_count * 1536;
} else {
duration = AP4_ConvertTime(1000*sample_table->GetSampleCount(), sample_rate, movie.GetTimeScale());
duration = AP4_ConvertTime(1536*sample_table->GetSampleCount(), sample_rate, movie.GetTimeScale());
}
AP4_ElstEntry new_elst_entry = AP4_ElstEntry(duration, 0, 1);
new_elst->AddEntry(new_elst_entry);
Expand Down Expand Up @@ -962,7 +962,7 @@ AddAc4Track(AP4_Movie& movie,
if (!movie.GetTimeScale()) {
duration = AP4_UI64(sample_count) * sample_duration;
} else {
duration = AP4_ConvertTime(1000*sample_table->GetSampleCount(), media_time_scale, movie.GetTimeScale());
duration = AP4_ConvertTime(AP4_UI64(sample_count)*sample_table->GetSampleCount(), media_time_scale, movie.GetTimeScale());
}
AP4_ElstEntry new_elst_entry = AP4_ElstEntry(duration, 0, 1);
new_elst->AddEntry(new_elst_entry);
Expand Down
Loading