lavc/qdm2: increase code clarity
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Josh de Kock <josh@itanimul.li>
This commit is contained in:
parent
7e9e1b7070
commit
25866680fd
@ -537,7 +537,7 @@ static void fill_coding_method_array(sb_int8_array tone_level_idx,
|
|||||||
/* This case is untested, no samples available */
|
/* This case is untested, no samples available */
|
||||||
avpriv_request_sample(NULL, "!superblocktype_2_3");
|
avpriv_request_sample(NULL, "!superblocktype_2_3");
|
||||||
return;
|
return;
|
||||||
for (ch = 0; ch < nb_channels; ch++)
|
for (ch = 0; ch < nb_channels; ch++) {
|
||||||
for (sb = 0; sb < 30; sb++) {
|
for (sb = 0; sb < 30; sb++) {
|
||||||
for (j = 1; j < 63; j++) { // The loop only iterates to 63 so the code doesn't overflow the buffer
|
for (j = 1; j < 63; j++) { // The loop only iterates to 63 so the code doesn't overflow the buffer
|
||||||
add1 = tone_level_idx[ch][sb][j] - 10;
|
add1 = tone_level_idx[ch][sb][j] - 10;
|
||||||
@ -566,6 +566,7 @@ static void fill_coding_method_array(sb_int8_array tone_level_idx,
|
|||||||
}
|
}
|
||||||
tone_level_idx_temp[ch][sb][0] = tone_level_idx_temp[ch][sb][1];
|
tone_level_idx_temp[ch][sb][0] = tone_level_idx_temp[ch][sb][1];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
acc = 0;
|
acc = 0;
|
||||||
for (ch = 0; ch < nb_channels; ch++)
|
for (ch = 0; ch < nb_channels; ch++)
|
||||||
for (sb = 0; sb < 30; sb++)
|
for (sb = 0; sb < 30; sb++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user