Closed Bug 1211787 Opened 9 years ago Closed 9 years ago

Improve the accuracy of MediaDecoderStateMachine::GetDecodedAudioDuration()

Categories

(Core :: Audio/Video: Playback, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla44
Tracking Status
firefox44 --- fixed

People

(Reporter: jwwang, Assigned: jwwang)

Details

Attachments

(1 file)

DedocdedStream doesn't remove the audio samples from the queue after sending them to the media stream. This results in an overestimation of the return value of GetDecodedAudioDuration().

This causes audio samples to be removed in a burst in DiscardStreamData() which happens about every 40ms and fluctuations in next frame status between NEXT_FRAME_AVAILABLE and NEXT_FRAME_UNAVAILABLE.

This also cause audio glitches more likely to happen because audio is not decoded steadily.
Assignee: nobody → jwwang
Bug 1211787 - Improve the accuracy of MediaDecoderStateMachine::GetDecodedAudioDuration(). r=roc.
Attachment #8670629 - Flags: review?(roc)
Comment on attachment 8670629 [details]
MozReview Request: Bug 1211787 - Improve the accuracy of MediaDecoderStateMachine::GetDecodedAudioDuration(). r=roc.

https://reviewboard.mozilla.org/r/21419/#review19303
Thanks for the review!
https://hg.mozilla.org/mozilla-central/rev/029c4ffba064
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: