evrcdec: fix wrong condition

Fixes CID980005 and CID980004.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
pull/9/merge
Paul B Mahol 12 years ago
parent fd6a021d8e
commit 5d7009dac2
  1. 3
      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;
}

Loading…
Cancel
Save