From: Måns Rullgård Date: Tue, 19 Oct 2004 21:35:18 +0000 (+0000) Subject: filesize (bits) in a 32 bit int will overflow after 250MB, screwing up X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46d0385cdd96b8d0753016bb255108a3adb3ba86;p=libx264 filesize (bits) in a 32 bit int will overflow after 250MB, screwing up 2pass ratecontrol. (patch by Loren Merritt ) git-svn-id: svn://svn.videolan.org/x264/trunk@52 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/core/common.h b/core/common.h index 048ad2a1..dd5fa34e 100644 --- a/core/common.h +++ b/core/common.h @@ -359,7 +359,7 @@ struct x264_t /* per slice info */ int i_slice_count[5]; - int i_slice_size[5]; + int64_t i_slice_size[5]; /* */ int64_t i_sqe_global[5]; float f_psnr_average[5]; @@ -367,7 +367,7 @@ struct x264_t float f_psnr_mean_u[5]; float f_psnr_mean_v[5]; /* */ - int i_mb_count[5][18]; + int64_t i_mb_count[5][18]; } stat;