From 131aa222f6c39dc9eecf145abb75c5b9a929579f Mon Sep 17 00:00:00 2001 From: Anton Mitrofanov Date: Sat, 18 Dec 2010 08:29:18 -0800 Subject: [PATCH] Fix redundant linebreaks in statsfile with weightp --- encoder/ratecontrol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/encoder/ratecontrol.c b/encoder/ratecontrol.c index 162100ab..c1896d13 100644 --- a/encoder/ratecontrol.c +++ b/encoder/ratecontrol.c @@ -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; } -- 2.47.3