Browse Source

libspeexdec: fix detection of final terminator code

tags/n2.1
Justin Ruggles 12 years ago
parent
commit
8000206abc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/libspeexdec.c

+ 1
- 1
libavcodec/libspeexdec.c View 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;


Loading…
Cancel
Save