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:
5423fe7
)
avoid random noise on damaged frames
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 30 Oct 2006 01:29:56 +0000
(
01:29
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 30 Oct 2006 01:29:56 +0000
(
01:29
+0000)
Originally committed as revision 6836 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mpegaudiodec.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpegaudiodec.c
b/libavcodec/mpegaudiodec.c
index
1ee2095
..
7d6087a
100644
(file)
--- a/
libavcodec/mpegaudiodec.c
+++ b/
libavcodec/mpegaudiodec.c
@@
-2269,7
+2269,8
@@
static int mp_decode_layer3(MPADecodeContext *s)
//av_log(NULL, AV_LOG_ERROR, "backstep:%d, lastbuf:%d\n", main_data_begin, s->last_buf_size);
if(main_data_begin > s->last_buf_size){
av_log(NULL, AV_LOG_ERROR, "backstep:%d, lastbuf:%d\n", main_data_begin, s->last_buf_size);
- s->last_buf_size= main_data_begin;
+// s->last_buf_size= main_data_begin;
+ return -1;
}
memcpy(s->last_buf + s->last_buf_size, ptr, EXTRABYTES);