fixed >2GB files demuxing

patch by Ilkka Forsblom <Ilkka.Forsblom@helsinki.fi>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7362 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-09-10 20:42:45 +00:00
parent 36abc4832b
commit 870d1cb130
1 changed files with 4 additions and 4 deletions

View File

@ -52,8 +52,8 @@ void demux_seek_nuv ( demuxer_t *demuxer, float rel_seek_secs, int flags )
#define MAX_TIME 1000000
nuv_priv_t* priv = demuxer->priv;
struct rtframeheader rtjpeg_frameheader;
int orig_pos;
int curr_pos;
off_t orig_pos;
off_t curr_pos;
float current_time = 0;
float start_time = MAX_TIME;
float target_time = start_time + rel_seek_secs * 1000; /* target_time, start_time are ms, rel_seek_secs s */
@ -138,7 +138,7 @@ void demux_seek_nuv ( demuxer_t *demuxer, float rel_seek_secs, int flags )
int demux_nuv_fill_buffer ( demuxer_t *demuxer )
{
struct rtframeheader rtjpeg_frameheader;
int orig_pos;
off_t orig_pos;
nuv_priv_t* priv = demuxer->priv;
orig_pos = stream_tell ( demuxer->stream );
@ -287,7 +287,7 @@ int nuv_check_file ( demuxer_t* demuxer )
struct nuv_signature ns;
/* Store original position */
int orig_pos = stream_tell(demuxer->stream);
off_t orig_pos = stream_tell(demuxer->stream);
mp_msg ( MSGT_DEMUX, MSGL_V, "Checking for NuppelVideo\n" );