]> granicus.if.org Git - libx264/commitdiff
too many systems don't have off_t; use uint64_t instead.
authorLoren Merritt <pengvado@videolan.org>
Mon, 6 Feb 2006 03:49:38 +0000 (03:49 +0000)
committerLoren Merritt <pengvado@videolan.org>
Mon, 6 Feb 2006 03:49:38 +0000 (03:49 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@414 df754926-b1dd-0310-bc7b-ec298dee348c

x264.c

diff --git a/x264.c b/x264.c
index 0cb14ab9d7bf00cc80b7bf3ad34e4b1b3584c303..e15b45873ac08fc117a07e457d64c7c15b7939c8 100644 (file)
--- a/x264.c
+++ b/x264.c
@@ -1185,7 +1185,7 @@ static int get_frame_total_yuv( hnd_t handle, int i_width, int i_height )
 
     if( !fseek( f, 0, SEEK_END ) )
     {
-        off_t i_size = ftell( f );
+        uint64_t i_size = ftell( f );
         fseek( f, 0, SEEK_SET );
         i_frame_total = (int)(i_size / ( i_width * i_height * 3 / 2 ));
     }
@@ -1199,7 +1199,7 @@ static int read_frame_yuv( x264_picture_t *p_pic, hnd_t handle, int i_frame, int
     FILE *f = (FILE *)handle;
 
     if( i_frame != prev_frame+1 )
-        if( fseek( f, (off_t)i_frame * i_width * i_height * 3 / 2, SEEK_SET ) )
+        if( fseek( f, (uint64_t)i_frame * i_width * i_height * 3 / 2, SEEK_SET ) )
             return -1;
 
     if( fread( p_pic->img.plane[0], 1, i_width * i_height, f ) <= 0