diff options
author | Oded Shimon <ods15@ods15.dyndns.org> | 2006-09-24 10:58:06 +0000 |
---|---|---|
committer | Oded Shimon <ods15@ods15.dyndns.org> | 2006-09-24 10:58:06 +0000 |
commit | 0e3cb7a1ff521c20da8ad4273997bdadc132ebcc (patch) | |
tree | 3698d9696966d222e13d687a7d3dbe164ae12b84 /libavcodec/vorbis.c | |
parent | 97a9195feb7e7d3ed9a3cea34c06da74ab4770cb (diff) | |
download | ffmpeg-0e3cb7a1ff521c20da8ad4273997bdadc132ebcc.tar.gz |
fix to vorbis decoder for book==0
Originally committed as revision 6328 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vorbis.c')
-rw-r--r-- | libavcodec/vorbis.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |