mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
libspeexdec: fix detection of final terminator code
This commit is contained in:
parent
7ef760d95c
commit
8000206abc
@ -127,7 +127,7 @@ static int libspeex_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
current packet, otherwise ignore the current packet and keep decoding
|
current packet, otherwise ignore the current packet and keep decoding
|
||||||
frames from the libspeex buffer. */
|
frames from the libspeex buffer. */
|
||||||
if (speex_bits_remaining(&s->bits) < 5 ||
|
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 */
|
/* check for flush packet */
|
||||||
if (!buf || !buf_size) {
|
if (!buf || !buf_size) {
|
||||||
*got_frame_ptr = 0;
|
*got_frame_ptr = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user