shithub: aacenc

Download patch

ref: 85e9ecd6fba0e62cb64216fac8c0aab914be9c1d
parent: 38656d3a3250370f3ee7dd32899c2c053642c21d
author: menno <menno>
date: Tue Mar 28 04:12:05 EST 2000

Made TNS default again

--- a/encoder.c
+++ b/encoder.c
@@ -383,7 +383,7 @@
   as->header_type = ADTS_HEADER;
   as->use_IS = 0;
   as->use_MS = 0;
-  as->use_TNS = 0;
+  as->use_TNS = 1;
   as->use_LTP = 1;
   as->use_PNS = 0;
   as->cut_off = 0;
--- a/faac.c
+++ b/faac.c
@@ -53,7 +53,7 @@
   printf(" -pX   AAC profile (X can be LOW, or MAIN (default).\n");
   printf(" -bX   Bitrate in kbps (in steps of 1kbps, min. 16kbps)\n");
   printf(" -pns  Use PNS (Perceptual Noise Substitution).\n");
-  printf(" -tns  Use TNS (Temporal Noise Shaping).\n");
+  printf(" -nt   Don't use TNS (Temporal Noise Shaping).\n");
   printf(" -is   Use intensity stereo coding.\n");
   printf(" -ms   Use mid/side stereo coding.\n");
   printf(" -nm   Don't use mid/side stereo coding.\n");
@@ -151,6 +151,8 @@
 	    faac_SetParam(as,MS_STEREO,NO_MS);
           else if ((argv[i][2] == 'p') || (argv[i][2] == 'P'))
 	    faac_SetParam(as,LTP,NO_LTP);
+          else if ((argv[i][2] == 't') || (argv[i][2] == 'T'))
+	  faac_SetParam(as,TNS,NO_TNS);
           else {
             printf("Unknown option: %s\n", argv[i]);
             return 0;
@@ -176,9 +178,6 @@
 	  break;
 	case 'r': case 'R':
 	  faac_SetParam(as,RAW_AUDIO,USE_RAW_AUDIO);
-	  break;
-	case 't': case 'T':
-	  faac_SetParam(as,TNS,USE_TNS);
 	  break;
 	case 'b': case 'B':
 	  faac_SetParam(as,BITRATE,atoi(&argv[i][2]));