mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avcodec/wmadec: Don't check for errors for complete VLC tables
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
f1c022abf0
commit
2b702015d8
@ -345,10 +345,6 @@ static int decode_exp_vlc(WMACodecContext *s, int ch)
|
|||||||
|
|
||||||
while (q < q_end) {
|
while (q < q_end) {
|
||||||
code = get_vlc2(&s->gb, s->exp_vlc.table, EXPVLCBITS, EXPMAX);
|
code = get_vlc2(&s->gb, s->exp_vlc.table, EXPVLCBITS, EXPMAX);
|
||||||
if (code < 0) {
|
|
||||||
av_log(s->avctx, AV_LOG_ERROR, "Exponent vlc invalid\n");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
/* NOTE: this offset is the same as MPEG-4 AAC! */
|
/* NOTE: this offset is the same as MPEG-4 AAC! */
|
||||||
last_exp += code - 60;
|
last_exp += code - 60;
|
||||||
if ((unsigned) last_exp + 60 >= FF_ARRAY_ELEMS(pow_tab)) {
|
if ((unsigned) last_exp + 60 >= FF_ARRAY_ELEMS(pow_tab)) {
|
||||||
@ -560,11 +556,6 @@ static int wma_decode_block(WMACodecContext *s)
|
|||||||
} else {
|
} else {
|
||||||
code = get_vlc2(&s->gb, s->hgain_vlc.table,
|
code = get_vlc2(&s->gb, s->hgain_vlc.table,
|
||||||
HGAINVLCBITS, HGAINMAX);
|
HGAINVLCBITS, HGAINMAX);
|
||||||
if (code < 0) {
|
|
||||||
av_log(s->avctx, AV_LOG_ERROR,
|
|
||||||
"hgain vlc invalid\n");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
val += code - 18;
|
val += code - 18;
|
||||||
}
|
}
|
||||||
s->high_band_values[ch][i] = val;
|
s->high_band_values[ch][i] = val;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user