Closed
Bug 1057225
Opened 11 years ago
Closed 11 years ago
Fix rounding issues causing slight gaps in MP4 time ranges.
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: ajones, Assigned: ajones)
References
Details
Attachments
(1 file)
|
10.02 KB,
patch
|
eflores
:
review+
|
Details | Diff | Splinter Review |
Fragments can have a rounding error of 1 timescale unit per sample. This gets reported as a discontinuity in the buffered time ranges. It makes sense to wallpaper over this discontinuity because it is inconsequential.
| Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8477242 -
Flags: review?(edwin)
Comment on attachment 8477242 [details] [diff] [review]
Fix MP4 timestamp discontinuities due to rounding
Review of attachment 8477242 [details] [diff] [review]:
-----------------------------------------------------------------
::: media/libstagefright/binding/mp4_demuxer.cpp
@@ +252,5 @@
> uint64_t offset = std::numeric_limits<uint64_t>::max();
> for (int i = 0; i < mPrivate->mIndexes.Length(); i++) {
> offset = std::min(offset, mPrivate->mIndexes[i]->GetEvictionOffset(aTime));
> }
> + return offset == std::numeric_limits<uint64_t>::max() ? 0 : offset;
0 is a valid offset. This should return -1.
Attachment #8477242 -
Flags: review?(edwin) → review+
| Assignee | ||
Comment 3•11 years ago
|
||
Comment 4•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in
before you can comment on or make changes to this bug.
Description
•