]> git.videolan.org Git - x264.git/commitdiff
Fix redundant linebreaks in statsfile with weightp
authorAnton Mitrofanov <BugMaster@narod.ru>
Sat, 18 Dec 2010 16:29:18 +0000 (08:29 -0800)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Mon, 10 Jan 2011 19:38:41 +0000 (11:38 -0800)
encoder/ratecontrol.c

index 162100ab154e8fc0ebab37856ee0522b71c5a662..c1896d130da1b3a8ad0289cd17c8d001023021f1 100644 (file)
@@ -1566,12 +1566,12 @@ int x264_ratecontrol_end( x264_t *h, int bits, int *filler )
                 goto fail;
             if( h->sh.weight[0][1].weightfn || h->sh.weight[0][2].weightfn )
             {
-                if( fprintf( rc->p_stat_file_out, ",%d,%d,%d,%d,%d\n",
+                if( fprintf( rc->p_stat_file_out, ",%d,%d,%d,%d,%d ",
                              h->sh.weight[0][1].i_denom, h->sh.weight[0][1].i_scale, h->sh.weight[0][1].i_offset,
                              h->sh.weight[0][2].i_scale, h->sh.weight[0][2].i_offset ) < 0 )
                     goto fail;
             }
-            else if( fprintf( rc->p_stat_file_out, "\n" ) < 0 )
+            else if( fprintf( rc->p_stat_file_out, " " ) < 0 )
                 goto fail;
         }