projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
740c14d
)
Only print "invalid new backstep" when it is really invalid.
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 16 Sep 2008 01:49:32 +0000
(
01:49
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 16 Sep 2008 01:49:32 +0000
(
01:49
+0000)
Fixes issue541.
Originally committed as revision 15339 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mpegaudiodec.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpegaudiodec.c
b/libavcodec/mpegaudiodec.c
index a0b7e35b3d12a3d03496de9cd00024c63950d6f1..86d9f6b5f4c04b58c2fd237e1a0ad7998374ddc8 100644
(file)
--- a/
libavcodec/mpegaudiodec.c
+++ b/
libavcodec/mpegaudiodec.c
@@
-2240,7
+2240,8
@@
static int mp_decode_frame(MPADecodeContext *s,
i= (s->gb.size_in_bits - get_bits_count(&s->gb))>>3;
if(i<0 || i > BACKSTEP_SIZE || nb_frames<0){
- av_log(s->avctx, AV_LOG_WARNING, "invalid new backstep %d\n", i);
+ if(i<0)
+ av_log(s->avctx, AV_LOG_ERROR, "invalid new backstep %d\n", i);
i= FFMIN(BACKSTEP_SIZE, buf_size - HEADER_SIZE);
}
assert(i <= buf_size - HEADER_SIZE && i>= 0);