mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
vorbisdec: propagate errors from setup_classifs()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
712ef25116
commit
ae038c0914
@ -1397,7 +1397,9 @@ static av_always_inline int vorbis_residue_decode_internal(vorbis_context *vc,
|
|||||||
voffset = vr->begin;
|
voffset = vr->begin;
|
||||||
for (partition_count = 0; partition_count < ptns_to_read;) { // SPEC error
|
for (partition_count = 0; partition_count < ptns_to_read;) { // SPEC error
|
||||||
if (!pass) {
|
if (!pass) {
|
||||||
setup_classifs(vc, vr, do_not_decode, ch_used, partition_count);
|
int ret;
|
||||||
|
if ((ret = setup_classifs(vc, vr, do_not_decode, ch_used, partition_count)) < 0)
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
for (i = 0; (i < c_p_c) && (partition_count < ptns_to_read); ++i) {
|
for (i = 0; (i < c_p_c) && (partition_count < ptns_to_read); ++i) {
|
||||||
for (j_times_ptns_to_read = 0, j = 0; j < ch_used; ++j) {
|
for (j_times_ptns_to_read = 0, j = 0; j < ch_used; ++j) {
|
||||||
|
Loading…
Reference in New Issue
Block a user