diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-03 17:13:16 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-05 18:36:13 +0100 |
commit | f3c9d66bafde9b8586bd63dd3307daa87352af75 (patch) | |
tree | 11b9631533c1ec102c9a9f47cb4e06c46326131e /libavcodec/libspeexdec.c | |
parent | 6717d1a96ff2362817c1c6abbe3709b2925220c4 (diff) | |
download | ffmpeg-f3c9d66bafde9b8586bd63dd3307daa87352af75.tar.gz |
libspeexdec: fix terminator check
Fixes Ticket2096
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libspeexdec.c')
-rw-r--r-- | libavcodec/libspeexdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libspeexdec.c b/libavcodec/libspeexdec.c index 7ed2636538..2ab0a8d4ed 100644 --- a/libavcodec/libspeexdec.c +++ b/libavcodec/libspeexdec.c @@ -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; |