[MPlayer-dev-eng] [PATCH] Fix for demuxing over 2GB large NuppelVideo files
Ilkka Forsblom
Ilkka.Forsblom at helsinki.fi
Thu Sep 5 14:57:29 CEST 2002
BUG: Playing/encoding over 2GB large NuppelVideo files isn't possible even
with large file support enabled in mplayer's configure. The original nuvrec
doesn't create over 2GB files, but the nuvrec utility in nvrec
(http://nvrec.sourceforge.net) does.
FIX: I changed the int-types used to store offsets into off_t-types. Thus
the large-file support kicks in correctly when asked for.
--
Ilkka Forsblom
PGP key fingerprint E037 D42E 6432 85E5 B24A 275C 64D1 1578 6CF5 AA0C
available from keyservers and http://www.helsinki.fi/~forsblom/pubkey.asc
-------------- next part --------------
Index: libmpdemux/demux_nuv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_nuv.c,v
retrieving revision 1.8
diff -u -r1.8 demux_nuv.c
--- libmpdemux/demux_nuv.c 6 Jul 2002 15:23:20 -0000 1.8
+++ libmpdemux/demux_nuv.c 5 Sep 2002 12:49:11 -0000
@@ -52,8 +52,8 @@
#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 @@
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 @@
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" );
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020905/5063120f/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list