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)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: jya, Assigned: jya)

Details

Attachments

(1 file)

A tad silly mistake: Adts::GetFrequencyIndex(uint16_t aSamplesPerSecond) then go on to compare aSamplesPerSecond against 96000 and 88200.
Stage 6. how did that ever work? :)
Attachment #8590649 - Flags: review?(giles)
Assignee: nobody → jyavenard
Status: NEW → ASSIGNED
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+
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.

Attachment

General

Created:
Updated:
Size: