Commit 989f8d30 authored by michael's avatar michael

avoid random noise on damaged frames


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6836 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 57747c17
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment