diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-02-11 11:04:52 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-02-11 11:04:52 +0000 |
commit | 5d7009dac28bd448313e3d04327b2cb00446dc83 (patch) | |
tree | d14608e8a48b411bbbb15271323968bc0d633baa | |
parent | fd6a021d8e3d63249510ebbecc3fe11ae7771ae8 (diff) | |
download | ffmpeg-5d7009dac28bd448313e3d04327b2cb00446dc83.tar.gz |
evrcdec: fix wrong condition
Fixes CID980005 and CID980004.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/evrcdec.c | 3 |
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; } |