Commit ca00a7e8 authored by Martin Storsjö's avatar Martin Storsjö

amrwbdec: Decode the fr_quality bit properly

The way this bit is decoded was accidentally flipped in b70feb40,
leading to warnings "Encountered a bad or corrupted frame" for each
decoded frame.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 4aa3d7b3
......@@ -122,7 +122,7 @@ static int decode_mime_header(AMRWBContext *ctx, const uint8_t *buf)
{
/* Decode frame header (1st octet) */
ctx->fr_cur_mode = buf[0] >> 3 & 0x0F;
ctx->fr_quality = (buf[0] & 0x4) != 0x4;
ctx->fr_quality = (buf[0] & 0x4) == 0x4;
return 1;
}
......
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