From: Laurent Aimar Date: Wed, 22 Sep 2004 07:37:43 +0000 (+0000) Subject: * ratecontrol: added 'b' flag to fopen. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79a2bb78b970e55e92bb4a74ff5f88dc6d0a6851;p=libx264 * ratecontrol: added 'b' flag to fopen. git-svn-id: svn://svn.videolan.org/x264/trunk@48 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/encoder/ratecontrol.c b/encoder/ratecontrol.c index be4972fd..b4ef1229 100644 --- a/encoder/ratecontrol.c +++ b/encoder/ratecontrol.c @@ -231,7 +231,7 @@ int x264_ratecontrol_new( x264_t *h ) /* read 1st pass stats */ assert( h->param.rc.psz_stat_in ); - stats_file = fopen( h->param.rc.psz_stat_in, "r"); + stats_file = fopen( h->param.rc.psz_stat_in, "rb"); if(!stats_file) { x264_log(h, X264_LOG_ERROR, "ratecontrol_init: can't open stats file\n"); @@ -303,7 +303,7 @@ int x264_ratecontrol_new( x264_t *h ) /* Open output file */ if( h->param.rc.b_stat_write ) { - rc->p_stat_file_out = fopen( h->param.rc.psz_stat_out, "w" ); + rc->p_stat_file_out = fopen( h->param.rc.psz_stat_out, "wb" ); if( rc->p_stat_file_out == NULL ) { x264_log(h, X264_LOG_ERROR, "ratecontrol_init: can't open stats file\n");