[MPlayer-cvslog] r29940 - trunk/libmpdemux/demux_ty.c

reimar subversion at mplayerhq.hu
Sat Nov 21 00:48:16 CET 2009


Author: reimar
Date: Sat Nov 21 00:48:16 2009
New Revision: 29940

Log:
Move 128kB buffer from stack to demuxer context.

Modified:
   trunk/libmpdemux/demux_ty.c

Modified: trunk/libmpdemux/demux_ty.c
==============================================================================
--- trunk/libmpdemux/demux_ty.c	Sat Nov 21 00:41:06 2009	(r29939)
+++ trunk/libmpdemux/demux_ty.c	Sat Nov 21 00:48:16 2009	(r29940)
@@ -86,6 +86,7 @@ typedef struct
 typedef struct
 {
    int             whichChunk;
+   unsigned char   chunk[ CHUNKSIZE ];
 
    unsigned char   lastAudio[ MAX_AUDIO_BUFFER ];
    int             lastAudioEnd;
@@ -338,7 +339,6 @@ static int demux_ty_fill_buffer( demuxer
    int              errorHeader = 0;
    int              recordsDecoded = 0;
 
-   unsigned char    chunk[ CHUNKSIZE ];
    int              readSize;
 
    int              numberRecs;
@@ -350,6 +350,7 @@ static int demux_ty_fill_buffer( demuxer
    int              aid;
 
    TiVoInfo         *tivo = demux->priv;
+   unsigned char    *chunk = tivo->chunk;
 
    if ( demux->stream->type == STREAMTYPE_DVD )
       return 0;


More information about the MPlayer-cvslog mailing list