shithub: opus-tools

Download patch

ref: 0f9797c14fc4a77e4ab31ccea7fa7ab84dce63b7
parent: 2ce80f0c348a6c73de33cea757ec3fe69ee55611
author: Chris Moeller <[email protected]>
date: Wed Jul 25 16:27:35 EDT 2012

Minor cosmetic fix

--- a/src/opusenc.c
+++ b/src/opusenc.c
@@ -917,6 +917,7 @@
           estbitrate=(total_bytes*8.0/coded_seconds)*tweight+
                       bitrate*(1.-tweight);
         }else estbitrate=nbBytes*8*((double)coding_rate/frame_size);
+        fprintf(stderr,"\r");
         for(i=0;i<last_spin_len;i++)fprintf(stderr," ");
         if(inopt.total_samples_per_channel>0 && inopt.total_samples_per_channel<nb_encoded){
           snprintf(sbuf,54,"\r[%c] %02d%% ",spinner[last_spin&3],
@@ -926,7 +927,7 @@
         }
         last_spin_len=strlen(sbuf);
         snprintf(sbuf+last_spin_len,54-last_spin_len,
-          "%02d:%02d:%02d.%02d %4.3gx realtime, %5.4gkbit/s\r",
+          "%02d:%02d:%02d.%02d %4.3gx realtime, %5.4gkbit/s",
           (int)(coded_seconds/3600),(int)(coded_seconds/60)%60,
           (int)(coded_seconds)%60,(int)(coded_seconds*100)%100,
           coded_seconds/wall_time,