From d856517d7ed8ebd1af302602b777979d89785e0c Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 10 Feb 2017 08:40:39 +0100 Subject: libtoolame-dab: print to stderr instead of stdout --- libtoolame-dab/encode_new.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libtoolame-dab/encode_new.c') 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, -- cgit v1.2.3