Commit 61dc4684 authored by Attila Uygun's avatar Attila Uygun Committed by Commit Bot

Fix frequency index set for AAC Parametric Stereo profile.

Bug: 908472
Change-Id: I2d67e946f46a83b930a22ace762cb064e73bb8fb
Reviewed-on: https://chromium-review.googlesource.com/c/1350894Reviewed-by: default avatarDale Curtis <dalecurtis@chromium.org>
Commit-Queue: Attila Uygun <auygun@opera.com>
Cr-Commit-Position: refs/heads/master@{#611634}
parent b0932269
......@@ -127,8 +127,9 @@ bool GetCodecSpecificDataForAudio(AudioCodec codec,
if (profile == 5 || profile == 29) {
// Read extension config.
RETURN_ON_ERROR(reader.ReadBits(4, &frequency_index));
if (frequency_index == 0xf)
uint8_t ext_frequency_index = 0;
RETURN_ON_ERROR(reader.ReadBits(4, &ext_frequency_index));
if (ext_frequency_index == 0xf)
RETURN_ON_ERROR(reader.SkipBits(24));
RETURN_ON_ERROR(reader.ReadBits(5, &profile));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment