You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
qdm2: remove unneeded checks for channel count
This commit is contained in:
@@ -544,10 +544,6 @@ static void fill_tone_level_array (QDM2Context *q, int flag)
|
|||||||
int i, sb, ch, sb_used;
|
int i, sb, ch, sb_used;
|
||||||
int tmp, tab;
|
int tmp, tab;
|
||||||
|
|
||||||
// This should never happen
|
|
||||||
if (q->nb_channels <= 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
for (ch = 0; ch < q->nb_channels; ch++)
|
for (ch = 0; ch < q->nb_channels; ch++)
|
||||||
for (sb = 0; sb < 30; sb++)
|
for (sb = 0; sb < 30; sb++)
|
||||||
for (i = 0; i < 8; i++) {
|
for (i = 0; i < 8; i++) {
|
||||||
@@ -643,10 +639,6 @@ static void fill_coding_method_array (sb_int8_array tone_level_idx, sb_int8_arra
|
|||||||
int add1, add2, add3, add4;
|
int add1, add2, add3, add4;
|
||||||
int64_t multres;
|
int64_t multres;
|
||||||
|
|
||||||
// This should never happen
|
|
||||||
if (nb_channels <= 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (!superblocktype_2_3) {
|
if (!superblocktype_2_3) {
|
||||||
/* This case is untested, no samples available */
|
/* This case is untested, no samples available */
|
||||||
SAMPLES_NEEDED
|
SAMPLES_NEEDED
|
||||||
|
Reference in New Issue
Block a user