Mercurial > mplayer.hg
changeset 27230:48b793612e37
Make really sure channels can only be 1 or 2 for imaadpcm
author | reimar |
---|---|
date | Fri, 11 Jul 2008 19:29:41 +0000 |
parents | e6de9712a5e5 |
children | f80855a9d336 |
files | libmpcodecs/ad_imaadpcm.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ad_imaadpcm.c Fri Jul 11 19:28:22 2008 +0000 +++ b/libmpcodecs/ad_imaadpcm.c Fri Jul 11 19:29:41 2008 +0000 @@ -167,7 +167,7 @@ int initial_index[2]; int i; - if (channels > 1) channels = 2; + if (channels != 1) channels = 2; if (block_size < channels * QT_IMA_ADPCM_BLOCK_SIZE) return -1; @@ -217,7 +217,7 @@ int channel_index_l; int channel_index_r; - if (channels > 1) channels = 2; + if (channels != 1) channels = 2; if (block_size < MS_IMA_ADPCM_PREAMBLE_SIZE * channels) return -1; @@ -280,7 +280,7 @@ int predictor[2]; int index[2]; - if (channels > 1) channels = 2; + if (channels != 1) channels = 2; if (block_size < MS_IMA_ADPCM_PREAMBLE_SIZE * channels) return -1;