libspeexdec: fix detection of final terminator code
authorJustin Ruggles <justin.ruggles@gmail.com>
Sat, 13 Jul 2013 15:55:33 +0000 (11:55 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Sun, 21 Jul 2013 20:36:31 +0000 (16:36 -0400)
libavcodec/libspeexdec.c

index 5b65696..a4bc162 100644 (file)
@@ -127,7 +127,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;