From: Anton Mitrofanov Date: Sun, 1 Nov 2009 02:51:14 +0000 (-0700) Subject: Fix large file support, broken in r1302 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3c9e6f3e77070f2f5447ef006959e8885a38e55;p=libx264 Fix large file support, broken in r1302 --- diff --git a/common/common.h b/common/common.h index ec61e144..d7c51d5e 100644 --- a/common/common.h +++ b/common/common.h @@ -80,6 +80,7 @@ do {\ #include "dct.h" #include "cabac.h" #include "quant.h" +#include "config.h" /**************************************************************************** * General functions diff --git a/encoder/encoder.c b/encoder/encoder.c index 4db7d91c..7cf6a963 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -67,7 +67,7 @@ static void x264_frame_dump( x264_t *h ) if( !f ) return; /* Write the frame in display order */ - fseek( f, h->fdec->i_frame * h->param.i_height * h->param.i_width * 3/2, SEEK_SET ); + fseek( f, (uint64_t)h->fdec->i_frame * h->param.i_height * h->param.i_width * 3/2, SEEK_SET ); for( i = 0; i < h->fdec->i_plane; i++ ) for( y = 0; y < h->param.i_height >> !!i; y++ ) fwrite( &h->fdec->plane[i][y*h->fdec->i_stride[i]], 1, h->param.i_width >> !!i, f ); diff --git a/encoder/set.c b/encoder/set.c index e087f834..fd1a22ee 100644 --- a/encoder/set.c +++ b/encoder/set.c @@ -24,7 +24,6 @@ #include #include "common/common.h" -#include "config.h" #include "set.h" #define bs_write_ue bs_write_ue_big diff --git a/x264.c b/x264.c index c1728f1b..d845a478 100644 --- a/x264.c +++ b/x264.c @@ -32,7 +32,6 @@ #include "common/cpu.h" #include "x264.h" #include "muxers.h" -#include "config.h" #ifdef _WIN32 #include