mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
fix to vorbis decoder for book==0
Originally committed as revision 6328 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
97a9195feb
commit
0e3cb7a1ff
@ -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));
|
AV_DEBUG("book %d Cbits %d cval %d bits:%d \n", book, cbits, cval, get_bits_count(gb));
|
||||||
|
|
||||||
cval=cval>>cbits;
|
cval=cval>>cbits;
|
||||||
if (book>0) {
|
if (book>-1) {
|
||||||
floor1_Y[offset+j]=get_vlc2(gb, vc->codebooks[book].vlc.table,
|
floor1_Y[offset+j]=get_vlc2(gb, vc->codebooks[book].vlc.table,
|
||||||
vc->codebooks[book].nb_bits, 3);
|
vc->codebooks[book].nb_bits, 3);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user