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)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: ajones, Assigned: ajones)

References

Details

Attachments

(1 file)

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.
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+
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.

Attachment

General

Created:
Updated:
Size: