OSDN Git Service

fix issue130
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 31 Oct 2007 22:36:06 +0000 (22:36 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 31 Oct 2007 22:36:06 +0000 (22:36 +0000)
Originally committed as revision 10888 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/vorbis_dec.c

index 6ac15cc..33c8bbc 100644 (file)
@@ -1006,6 +1006,7 @@ static uint_fast8_t vorbis_floor0_decode(vorbis_context *vc,
         if ( book_idx >= vf->num_books ) {
             av_log( vc->avccontext, AV_LOG_ERROR,
                     "floor0 dec: booknumber too high!\n" );
+            book_idx= 0;
             //FIXME: look above
         }
         AV_DEBUG( "floor0 dec: booknumber: %u\n", book_idx );