diff options
author | Martin Storsjö <martin@martin.st> | 2012-08-17 14:53:52 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-08-17 20:08:40 +0300 |
commit | ca00a7e809a4b9c9fb146403d278964b88d16b85 (patch) | |
tree | a206df43dba459628d4437a799effe9965202caa | |
parent | 4aa3d7b3f2b71296d73276d62be4e806b34d2d01 (diff) | |
download | ffmpeg-ca00a7e809a4b9c9fb146403d278964b88d16b85.tar.gz |
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>
-rw-r--r-- | libavcodec/amrwbdec.c | 2 |
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; } |