[FFmpeg-cvslog] mpegaudiodec: switch error detection check to AV_EF_BUFFER

Dustin Brody git at videolan.org
Sat Jan 21 23:21:13 CET 2012


ffmpeg | branch: master | Dustin Brody <libav at parsoma.net> | Mon Jan 16 08:25:04 2012 -0500| [d2a0041c2075a553bb8d4f94591f8556680190c8] | committer: Anton Khirnov

mpegaudiodec: switch error detection check to AV_EF_BUFFER

Signed-off-by: Anton Khirnov <anton at khirnov.net>

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

 libavcodec/mpegaudiodec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c
index 6a06afa..a83b162 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)) {



More information about the ffmpeg-cvslog mailing list