changeset 3757:271eca88821b libavcodec

fix to vorbis decoder for book==0
author ods15
date Sun, 24 Sep 2006 10:58:06 +0000
parents 9813c594dac5
children c3643ddcbaab
files vorbis.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vorbis.c	Sun Sep 24 10:53:54 2006 +0000
+++ b/vorbis.c	Sun Sep 24 10:58:06 2006 +0000
@@ -1186,7 +1186,7 @@
             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 {