diff options
author | Dustin Brody <libav@parsoma.net> | 2012-01-16 08:25:04 -0500 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-01-21 08:38:12 +0100 |
commit | d2a0041c2075a553bb8d4f94591f8556680190c8 (patch) | |
tree | 201e158da02c3b571a8b82b7a9590ffce0612417 /libavcodec/mpegaudiodec.c | |
parent | 5124423ec3bd71be5643e78cd953828266bc5059 (diff) | |
download | ffmpeg-d2a0041c2075a553bb8d4f94591f8556680190c8.tar.gz |
mpegaudiodec: switch error detection check to AV_EF_BUFFER
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/mpegaudiodec.c')
-rw-r--r-- | libavcodec/mpegaudiodec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c index 6a06afa680..a83b1621fd 100644 --- a/libavcodec/mpegaudiodec.c +++ b/libavcodec/mpegaudiodec.c @@ -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)) { |