Commit 0e3cb7a1 authored by Oded Shimon's avatar Oded Shimon

fix to vorbis decoder for book==0

Originally committed as revision 6328 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 97a9195f
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment