summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-02-10 08:40:39 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-02-10 08:40:39 +0100
commitd856517d7ed8ebd1af302602b777979d89785e0c (patch)
tree643585bb329f1f08207c85fb2e1a07c6c1aaf73f
parent6cc9ce1e196067c02e52eaf3896dce3b1ac39f98 (diff)
downloadODR-AudioEnc-d856517d7ed8ebd1af302602b777979d89785e0c.tar.gz
ODR-AudioEnc-d856517d7ed8ebd1af302602b777979d89785e0c.tar.bz2
ODR-AudioEnc-d856517d7ed8ebd1af302602b777979d89785e0c.zip
libtoolame-dab: print to stderr instead of stdout
-rw-r--r--libtoolame-dab/encode_new.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libtoolame-dab/encode_new.c b/libtoolame-dab/encode_new.c
index 31c296b..a437e70 100644
--- a/libtoolame-dab/encode_new.c
+++ b/libtoolame-dab/encode_new.c
@@ -122,7 +122,7 @@ int encode_init(frame_info *frame) {
} else { /* MPEG-2 LSF */
tablenum = 4;
}
- fprintf(stdout,"encode_init: using tablenum %i with sblimit %i\n",tablenum, table_sblimit[tablenum]);
+ fprintf(stderr,"toolame-dab encode_init(): using tablenum %i with sblimit %i\n",tablenum, table_sblimit[tablenum]);
#define DUMPTABLESx
#ifdef DUMPTABLES
@@ -783,7 +783,7 @@ void main_bit_allocation_new (double SMR[2][SBLIMIT],
upper = vbrlimits[nch-1][sfreq][1];
}
if (glopts->verbosity > 2)
- fprintf (stdout, "VBR bitrate index limits [%i -> %i]\n", lower, upper);
+ fprintf (stderr, "VBR bitrate index limits [%i -> %i]\n", lower, upper);
{
/* set up a conversion table for bitrateindex->bits for this version/sampl freq
@@ -866,13 +866,13 @@ void main_bit_allocation_new (double SMR[2][SBLIMIT],
int i;
if ((count++ % 1000) == 0) {
for (i = 1; i < 15; i++)
- fprintf (stdout, "%4i ", vbrstats_new[i]);
- fprintf (stdout, "\n");
+ fprintf (stderr, "%4i ", vbrstats_new[i]);
+ fprintf (stderr, "\n");
}
/* Print out *every* frames bitrateindex, bits required, and bits available at this bitrate */
if (glopts->verbosity > 5)
- fprintf (stdout,
+ fprintf (stderr,
"> bitrate index %2i has %i bits available to encode the %i bits\n",
frame->header->bitrate_index, *adb,
bits_for_nonoise_new (SMR, scfsi, frame,