Mercurial > libavcodec.hg
comparison alac.c @ 11080:dfade8d02b92 libavcodec
Remove redundant use of numchannels since it is 1 for mono.
author | jai_menon |
---|---|
date | Sat, 06 Feb 2010 12:48:37 +0000 |
parents | 5380ea3dcba9 |
children | 0d56d489e695 |
comparison
equal
deleted
inserted
replaced
11079:5380ea3dcba9 | 11080:dfade8d02b92 |
---|---|
645 interlacing_leftweight); | 645 interlacing_leftweight); |
646 } else { | 646 } else { |
647 int i; | 647 int i; |
648 for (i = 0; i < outputsamples; i++) { | 648 for (i = 0; i < outputsamples; i++) { |
649 int16_t sample = alac->outputsamples_buffer[0][i]; | 649 int16_t sample = alac->outputsamples_buffer[0][i]; |
650 ((int16_t*)outbuffer)[i * alac->numchannels] = sample; | 650 ((int16_t*)outbuffer)[i] = sample; |
651 } | 651 } |
652 } | 652 } |
653 break; | 653 break; |
654 case 24: | 654 case 24: |
655 if (channels == 2) { | 655 if (channels == 2) { |