aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/qdm2.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-10-22 18:54:29 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-11-01 11:29:18 -0400
commiteb38d8fe926bdce8110fa4be4fddf6598a079a20 (patch)
tree728a620c012f010d2cd90cc896f7db7dcbab2bb8 /libavcodec/qdm2.c
parentbe2ab8b75a634a686a5ced1544c0c9a4ebeab0dc (diff)
downloadffmpeg-eb38d8fe926bdce8110fa4be4fddf6598a079a20.tar.gz
qdm2: remove unneeded checks for channel count
Diffstat (limited to 'libavcodec/qdm2.c')
-rw-r--r--libavcodec/qdm2.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/libavcodec/qdm2.c b/libavcodec/qdm2.c
index 8e93886f1c..a094e6c188 100644
--- a/libavcodec/qdm2.c
+++ b/libavcodec/qdm2.c
@@ -544,10 +544,6 @@ static void fill_tone_level_array (QDM2Context *q, int flag)
int i, sb, ch, sb_used;
int tmp, tab;
- // This should never happen
- if (q->nb_channels <= 0)
- return;
-
for (ch = 0; ch < q->nb_channels; ch++)
for (sb = 0; sb < 30; sb++)
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;
int64_t multres;
- // This should never happen
- if (nb_channels <= 0)
- return;
-
if (!superblocktype_2_3) {
/* This case is untested, no samples available */
SAMPLES_NEEDED