Closed
Bug 1153097
Opened 10 years ago
Closed 10 years ago
ADTS conversion getting it wrong for sample rate > 64kHz
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla40
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: jya, Assigned: jya)
Details
Attachments
(1 file)
2.00 KB,
patch
|
rillian
:
review+
|
Details | Diff | Splinter Review |
A tad silly mistake:
Adts::GetFrequencyIndex(uint16_t aSamplesPerSecond)
then go on to compare aSamplesPerSecond against 96000 and 88200.
Assignee | ||
Comment 1•10 years ago
|
||
Stage 6. how did that ever work? :)
Attachment #8590649 -
Flags: review?(giles)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → jyavenard
Status: NEW → ASSIGNED
Comment 2•10 years ago
|
||
Comment on attachment 8590649 [details] [diff] [review]
Use 32 bits int to compare frequencies
Review of attachment 8590649 [details] [diff] [review]:
-----------------------------------------------------------------
Oops indeed!
::: media/libstagefright/binding/Adts.cpp
@@ +22,3 @@
>
> int8_t i = 0;
> + while (freq_lookup[i] && aSamplesPerSecond < freq_lookup[i]) {
I think the null check is redundant with the < check since aSamplesPerSecond is unsigned? Not complaining though.
Attachment #8590649 -
Flags: review?(giles) → review+
Assignee | ||
Comment 3•10 years ago
|
||
![]() |
||
Comment 4•10 years ago
|
||
This patch landed on central but didn't got marked as such - https://hg.mozilla.org/mozilla-central/rev/662d417e5e67
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in
before you can comment on or make changes to this bug.
Description
•