summaryrefslogtreecommitdiff
path: root/libavcodec/amrwbdec.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-08-17 14:53:52 +0300
committerMartin Storsjö <martin@martin.st>2012-08-17 20:08:40 +0300
commitca00a7e809a4b9c9fb146403d278964b88d16b85 (patch)
treea206df43dba459628d4437a799effe9965202caa /libavcodec/amrwbdec.c
parent4aa3d7b3f2b71296d73276d62be4e806b34d2d01 (diff)
amrwbdec: Decode the fr_quality bit properly
The way this bit is decoded was accidentally flipped in b70feb405, leading to warnings "Encountered a bad or corrupted frame" for each decoded frame. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/amrwbdec.c')
-rw-r--r--libavcodec/amrwbdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/amrwbdec.c b/libavcodec/amrwbdec.c
index 4885c2d6a2..a90a27abe1 100644
--- a/libavcodec/amrwbdec.c
+++ b/libavcodec/amrwbdec.c
@@ -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;
}