Commit f3c9d66b authored by Michael Niedermayer's avatar Michael Niedermayer

libspeexdec: fix terminator check

Fixes Ticket2096
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6717d1a9
...@@ -132,7 +132,7 @@ static int libspeex_decode_frame(AVCodecContext *avctx, void *data, ...@@ -132,7 +132,7 @@ static int libspeex_decode_frame(AVCodecContext *avctx, void *data,
current packet, otherwise ignore the current packet and keep decoding current packet, otherwise ignore the current packet and keep decoding
frames from the libspeex buffer. */ frames from the libspeex buffer. */
if (speex_bits_remaining(&s->bits) < 5 || if (speex_bits_remaining(&s->bits) < 5 ||
speex_bits_peek_unsigned(&s->bits, 5) == 0x1F) { speex_bits_peek_unsigned(&s->bits, 5) == 0xF) {
/* check for flush packet */ /* check for flush packet */
if (!buf || !buf_size) { if (!buf || !buf_size) {
*got_frame_ptr = 0; *got_frame_ptr = 0;
......
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