changeset 4295:aabfa0a58cb0 libavcodec

fix playback of mp3_bits_left.avi
author michael
date Mon, 11 Dec 2006 13:01:20 +0000
parents d8d019a1728e
children 4bfaef73d6ed
files mpegaudiodec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpegaudiodec.c	Mon Dec 11 10:52:18 2006 +0000
+++ b/mpegaudiodec.c	Mon Dec 11 13:01:20 2006 +0000
@@ -1749,7 +1749,7 @@
     /* 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){