Changeset 8
- Timestamp:
- 06/12/06 22:17:10 (2 years ago)
- Files:
-
- trunk/A52/ACShepA52Decoder.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/A52/ACShepA52Decoder.cpp
r3 r8 58 58 #endif 59 59 60 for (int channels = 2; channels <= 6; channels++) {60 for (int channels = 1; channels <= 6; channels++) { 61 61 // This decoder only takes an A/52 or AC-3 stream as it's input 62 62 CAStreamBasicDescription theInputFormat1(48000, kAudioFormatAC3, 0, 256*6, 0, channels, 0, 0); … … 428 428 429 429 switch(mOutputFormat.mChannelsPerFrame) { 430 case 1: 431 // Just mono 432 a52_flags = A52_MONO | A52_ADJUST_LEVEL; 433 break; 434 430 435 case 2: 431 436 // All we really need is stereophonic, baby … … 821 826 ioInputDataByteSize = offset; 822 827 ioNumberPackets = packet; 823 } else { 828 } 829 if( ioInputDataByteSize == 0) { 824 830 CODEC_THROW(kAudioCodecNotEnoughBufferSpaceError); 825 831 } 826 832 //fprintf(stderr, "ACShepA52Codec::AppendInputData: Copying in %ld:%ld new bytes\n", ioNumberPackets, ioInputDataByteSize); 827 833 828 if (firstInput ) {834 if (firstInput && ioInputDataByteSize != 0) { 829 835 DetermineStreamParameters(); 830 836 }
