mirror of
https://github.com/mpv-player/mpv
synced 2025-03-02 04:11:03 +00:00
Move 128kB buffer from stack to demuxer context.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29940 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
66c41d41c5
commit
d1a2c82198
@ -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_t *demux, demux_stream_t *dsds )
|
||||
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_t *demux, demux_stream_t *dsds )
|
||||
int aid;
|
||||
|
||||
TiVoInfo *tivo = demux->priv;
|
||||
unsigned char *chunk = tivo->chunk;
|
||||
|
||||
if ( demux->stream->type == STREAMTYPE_DVD )
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user