[FFmpeg-cvslog] libspeexdec: fix terminator check
Michael Niedermayer
git at videolan.org
Sat Jan 5 19:07:13 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jan 3 17:13:16 2013 +0100| [f3c9d66bafde9b8586bd63dd3307daa87352af75] | committer: Michael Niedermayer
libspeexdec: fix terminator check
Fixes Ticket2096
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f3c9d66bafde9b8586bd63dd3307daa87352af75
---
libavcodec/libspeexdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/libspeexdec.c b/libavcodec/libspeexdec.c
index 7ed2636..2ab0a8d 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;
More information about the ffmpeg-cvslog
mailing list