Closed
Bug 1068970
Opened 10 years ago
Closed 9 years ago
MediaDecoderStateMachine::SendStreamAudio() is incorrectly calling UsecsToFrames
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla42
Tracking | Status | |
---|---|---|
firefox42 | --- | fixed |
People
(Reporter: cpearce, Assigned: jwwang)
Details
Attachments
(1 file, 1 obsolete file)
1.24 KB,
patch
|
jwwang
:
review+
|
Details | Diff | Splinter Review |
MediaDecoderStateMachine::SendStreamAudio() is incorrectly calling UsecsToFrames
http://mxr.mozilla.org/mozilla-central/source/content/media/MediaDecoderStateMachine.cpp#303
UsecsToFrames is as defined as:
UsecsToFrames(int64_t aUsecs, uint32_t aRate)
But we call it as:
CheckedInt64 audioWrittenOffset = UsecsToFrames(mInfo.mAudio.mRate,
aStream->mInitialTime + mStartTime) + aStream->mAudioFramesWritten;
rate/time needs to be swapped here.
Reporter | ||
Comment 1•10 years ago
|
||
Ensure MediaDecoderStateMachine::SendStreamAudio() gets the order of arguments to UsecsToFrames correct...
Attachment #8491090 -
Flags: review?(roc)
Comment on attachment 8491090 [details] [diff] [review]
Patch
Review of attachment 8491090 [details] [diff] [review]:
-----------------------------------------------------------------
great catch!
Attachment #8491090 -
Flags: review?(roc) → review+
Reporter | ||
Comment 3•10 years ago
|
||
Credit goes to Sotaro for spotting this!
Reporter | ||
Comment 4•10 years ago
|
||
Assignee | ||
Comment 5•9 years ago
|
||
It looks like this patch never made itself to Central...
Flags: needinfo?(cpearce)
Reporter | ||
Comment 6•9 years ago
|
||
I never had the time to get it green. You're welcome to take it off my hands!
Flags: needinfo?(cpearce)
Assignee | ||
Comment 7•9 years ago
|
||
Assignee | ||
Comment 8•9 years ago
|
||
Comment on attachment 8628176 [details] [diff] [review]
1068970_fix-v2.patch
Try looks green after rebase. https://treeherder.mozilla.org/#/jobs?repo=try&revision=9318f4583748
Carry r+ from roc.
Attachment #8628176 -
Flags: review+
Comment 10•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox42:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in
before you can comment on or make changes to this bug.
Description
•