[FFmpeg-cvslog] evrcdec: fix wrong condition
Paul B Mahol
git at videolan.org
Mon Feb 11 12:09:24 CET 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Feb 11 11:04:52 2013 +0000| [5d7009dac28bd448313e3d04327b2cb00446dc83] | committer: Paul B Mahol
evrcdec: fix wrong condition
Fixes CID980005 and CID980004.
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5d7009dac28bd448313e3d04327b2cb00446dc83
---
libavcodec/evrcdec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/evrcdec.c b/libavcodec/evrcdec.c
index 12af5a0..8795f3d 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;
}
More information about the ffmpeg-cvslog
mailing list