Mercurial > mplayer.hg
changeset 29898:83425130939d
Move 128kB buffer from stack to demuxer context.
author | reimar |
---|---|
date | Fri, 20 Nov 2009 23:48:16 +0000 |
parents | f1bf918917c6 |
children | 0447ba499275 |
files | libmpdemux/demux_ty.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;