From 0e3cb7a1ff521c20da8ad4273997bdadc132ebcc Mon Sep 17 00:00:00 2001 From: Oded Shimon Date: Sun, 24 Sep 2006 10:58:06 +0000 Subject: [PATCH] fix to vorbis decoder for book==0 Originally committed as revision 6328 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/vorbis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vorbis.c b/libavcodec/vorbis.c index 41912bb18e..aa2d9e9040 100644 --- a/libavcodec/vorbis.c +++ b/libavcodec/vorbis.c @@ -1186,7 +1186,7 @@ static uint_fast8_t vorbis_floor1_decode(vorbis_context *vc, vorbis_floor_data * AV_DEBUG("book %d Cbits %d cval %d bits:%d \n", book, cbits, cval, get_bits_count(gb)); cval=cval>>cbits; - if (book>0) { + if (book>-1) { floor1_Y[offset+j]=get_vlc2(gb, vc->codebooks[book].vlc.table, vc->codebooks[book].nb_bits, 3); } else {