[x264-devel] [PATCH] ratecontrol overflow
Loren Merritt
lorenm at u.washington.edu
Tue Oct 19 23:05:12 CEST 2004
filesize (bits) in a 32 bit int will overflow after 250MB, screwing up
2pass ratecontrol.
--Loren Merritt
-------------- next part --------------
Index: core/common.h
===================================================================
--- core/common.h (revision 50)
+++ core/common.h (working copy)
@@ -359,7 +359,7 @@
/* 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 @@
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;
More information about the x264-devel
mailing list