[FFmpeg-cvslog] libspeexdec: fix detection of final terminator code

Justin Ruggles git at videolan.org
Mon Jul 22 10:57:50 CEST 2013


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Sat Jul 13 11:55:33 2013 -0400| [8000206abcc82491c2a8c71e494c5477ede7264c] | committer: Justin Ruggles

libspeexdec: fix detection of final terminator code

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8000206abcc82491c2a8c71e494c5477ede7264c
---

 libavcodec/libspeexdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libspeexdec.c b/libavcodec/libspeexdec.c
index 5b65696..a4bc162 100644
--- a/libavcodec/libspeexdec.c
+++ b/libavcodec/libspeexdec.c
@@ -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;



More information about the ffmpeg-cvslog mailing list