Commit 5d7009da authored by Paul B Mahol's avatar Paul B Mahol

evrcdec: fix wrong condition

Fixes CID980005 and CID980004.
Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent fd6a021d
......@@ -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;
}
......
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