You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
mpegaudiodec: switch error detection check to AV_EF_BUFFER
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
committed by
Anton Khirnov
parent
5124423ec3
commit
d2a0041c20
@@ -985,7 +985,7 @@ static int huffman_decode(MPADecodeContext *s, GranuleDef *g,
|
||||
/* skip extension bits */
|
||||
bits_left = end_pos2 - get_bits_count(&s->gb);
|
||||
//av_log(NULL, AV_LOG_ERROR, "left:%d buf:%p\n", bits_left, s->in_gb.buffer);
|
||||
if (bits_left < 0 && (s->err_recognition & AV_EF_BITSTREAM)) {
|
||||
if (bits_left < 0 && (s->err_recognition & AV_EF_BUFFER)) {
|
||||
av_log(s->avctx, AV_LOG_ERROR, "bits_left=%d\n", bits_left);
|
||||
s_index=0;
|
||||
} else if (bits_left > 0 && (s->err_recognition & AV_EF_BUFFER)) {
|
||||
|
Reference in New Issue
Block a user