libspeexdec: fix terminator check
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 3 Jan 2013 16:13:16 +0000 (17:13 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 5 Jan 2013 17:36:13 +0000 (18:36 +0100)
Fixes Ticket2096

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/libspeexdec.c

index 7ed2636..2ab0a8d 100644 (file)
@@ -132,7 +132,7 @@ static int libspeex_decode_frame(AVCodecContext *avctx, void *data,
        current packet, otherwise ignore the current packet and keep decoding
        frames from the libspeex buffer. */
     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 */
         if (!buf || !buf_size) {
             *got_frame_ptr = 0;