Commit c625fb03 authored by michael's avatar michael

fix playback of mp3_bits_left.avi


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7279 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d8e8f07d
......@@ -1749,7 +1749,7 @@ static int huffman_decode(MPADecodeContext *s, GranuleDef *g,
/* skip extension bits */
bits_left = end_pos - 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 || bits_left > 16) {
if (bits_left < 0 || bits_left > 500) {
av_log(NULL, AV_LOG_ERROR, "bits_left=%d\n", bits_left);
s_index=0;
}else if(bits_left > 0 && s->error_resilience >= FF_ER_AGGRESSIVE){
......
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