ref: 85fec2ce0da580d0a86c731336e906a7feeb662f
parent: 3d1d047b7e5585b24891a88d62969da9b8473503
author: prkoat <prkoat>
date: Sat Jul 22 16:39:37 EDT 2000
Support for SCE (mono files)
--- a/encoder.c
+++ b/encoder.c
@@ -111,7 +111,6 @@
if (as->out_file == NULL)
return -2;
-
if ((as->inputBuffer = (double**)malloc( as->channels*sizeof(double*))) == NULL)
return -3;
for (ch=0; ch < as->channels; ch++){
@@ -122,7 +121,10 @@
if((as->bit_rate % 1000)||(as->bit_rate < 16000))
return -5;
if (as->channels != 2)
- return -6;
+ if(as->channels == 1)
+ as->use_MS=-1;
+ else
+ return -6;
if ((as->profile != MAIN_PROFILE)&&(as->profile != LOW_PROFILE))
return -7;
--- a/faac.c
+++ b/faac.c
@@ -242,7 +242,7 @@
printf("AAC profile: %s.\n", (as->profile==MAIN_PROFILE)?"MAIN":"LOW");
printf("Bitrate: %dkbps.\n", as->bit_rate/1000);
printf("Mid/Side (MS) stereo coding: %s.\n",
- (as->use_MS==1)?"Always":((as->use_MS==0)?"Switching":"Off"));
+ (as->use_MS==1)?"Always (If CPE)":((as->use_MS==0)?"Switching (If CPE)":"Off"));
printf("Intensity stereo (IS) coding: %s.\n", as->use_IS?"On":"Off");
printf("Temporal Noise Shaping: %s.\n", as->use_TNS?"On":"Off");
printf("Long Term Prediction: %s.\n", as->use_LTP?"On":"Off");