summaryrefslogtreecommitdiff
path: root/libavcodec/evrcdec.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-02-11 11:04:52 +0000
committerPaul B Mahol <onemda@gmail.com>2013-02-11 11:04:52 +0000
commit5d7009dac28bd448313e3d04327b2cb00446dc83 (patch)
treed14608e8a48b411bbbb15271323968bc0d633baa /libavcodec/evrcdec.c
parentfd6a021d8e3d63249510ebbecc3fe11ae7771ae8 (diff)
evrcdec: fix wrong condition
Fixes CID980005 and CID980004. Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/evrcdec.c')
-rw-r--r--libavcodec/evrcdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/evrcdec.c b/libavcodec/evrcdec.c
index 12af5a00fe..8795f3da96 100644
--- a/libavcodec/evrcdec.c
+++ b/libavcodec/evrcdec.c
@@ -776,7 +776,8 @@ static int evrc_decode_frame(AVCodecContext *avctx, void *data,
}
if (i == sizeof(EVRCAFrame))
goto erasure;
- } else if (e->frame.lsp[0] == e->frame.lsp[1] == 0xf &&
+ } else if (e->frame.lsp[0] == 0xf &&
+ e->frame.lsp[1] == 0xf &&
e->frame.energy_gain == 0xff) {
goto erasure;
}