mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
libspeexdec: fix terminator check
Fixes Ticket2096 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6717d1a96f
commit
f3c9d66baf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user