evrcdec: fix wrong condition
authorPaul B Mahol <onemda@gmail.com>
Mon, 11 Feb 2013 11:04:52 +0000 (11:04 +0000)
committerPaul B Mahol <onemda@gmail.com>
Mon, 11 Feb 2013 11:04:52 +0000 (11:04 +0000)
Fixes CID980005 and CID980004.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/evrcdec.c

index 12af5a0..8795f3d 100644 (file)
@@ -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;
     }