[x264-devel] commit: Fix large file support, broken in r1302 (Anton Mitrofanov )
git version control
git at videolan.org
Mon Nov 9 05:22:03 CET 2009
x264 | branch: master | Anton Mitrofanov <BugMaster at narod.ru> | Sat Oct 31 19:51:14 2009 -0700| [028b3ffa9071042468f2cc51580fa6ef65d6ff95] | committer: Jason Garrett-Glaser
Fix large file support, broken in r1302
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=028b3ffa9071042468f2cc51580fa6ef65d6ff95
---
common/common.h | 1 +
encoder/encoder.c | 2 +-
encoder/set.c | 1 -
x264.c | 1 -
4 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/common/common.h b/common/common.h
index ec61e14..d7c51d5 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 02d469a..465789d 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 e087f83..fd1a22e 100644
--- a/encoder/set.c
+++ b/encoder/set.c
@@ -24,7 +24,6 @@
#include <math.h>
#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 c1728f1..d845a47 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 <windows.h>
More information about the x264-devel
mailing list