From 5d7009dac28bd448313e3d04327b2cb00446dc83 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 11 Feb 2013 11:04:52 +0000 Subject: [PATCH] evrcdec: fix wrong condition Fixes CID980005 and CID980004. Signed-off-by: Paul B Mahol --- libavcodec/evrcdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }