Commit f3c9e6f3 authored by Anton Mitrofanov's avatar Anton Mitrofanov Committed by Fiona Glaser

Fix large file support, broken in r1302

parent 99cf5bf6
......@@ -80,6 +80,7 @@ do {\
#include "dct.h"
#include "cabac.h"
#include "quant.h"
#include "config.h"
/****************************************************************************
* General functions
......
......@@ -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 );
......
......@@ -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
......
......@@ -32,7 +32,6 @@
#include "common/cpu.h"
#include "x264.h"
#include "muxers.h"
#include "config.h"
#ifdef _WIN32
#include <windows.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment