# HG changeset patch # User reimar # Date 1258760896 0 # Node ID 83425130939d9dc882fad9de4d0c0fb49a03a734 # Parent f1bf918917c6a421126bbfd0af4ba7eb981bb1f6 Move 128kB buffer from stack to demuxer context. diff -r f1bf918917c6 -r 83425130939d libmpdemux/demux_ty.c --- a/libmpdemux/demux_ty.c Fri Nov 20 23:41:06 2009 +0000 +++ b/libmpdemux/demux_ty.c Fri Nov 20 23:48:16 2009 +0000 @@ -86,6 +86,7 @@ typedef struct { int whichChunk; + unsigned char chunk[ CHUNKSIZE ]; unsigned char lastAudio[ MAX_AUDIO_BUFFER ]; int lastAudioEnd; @@ -338,7 +339,6 @@ int errorHeader = 0; int recordsDecoded = 0; - unsigned char chunk[ CHUNKSIZE ]; int readSize; int numberRecs; @@ -350,6 +350,7 @@ int aid; TiVoInfo *tivo = demux->priv; + unsigned char *chunk = tivo->chunk; if ( demux->stream->type == STREAMTYPE_DVD ) return 0;