mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 07:12:39 +00:00
precaching
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3564 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3db7b73bd9
commit
267916c82b
@ -353,7 +353,7 @@ divx4_param.rc_reaction_ratio = 20;
|
||||
|
||||
printf("success: format: %d data: 0x%X - 0x%X\n",file_format, (int)(stream->start_pos),(int)(stream->end_pos));
|
||||
|
||||
if(stream_cache_size) stream_enable_cache(stream,stream_cache_size*1024);
|
||||
if(stream_cache_size) stream_enable_cache(stream,stream_cache_size*1024,0,0);
|
||||
|
||||
//demuxer=demux_open(stream,file_format,video_id,audio_id,dvdsub_id);
|
||||
demuxer=demux_open(stream,file_format,audio_id,video_id,dvdsub_id);
|
||||
|
@ -821,7 +821,8 @@ if(stream_dump_type==5){
|
||||
#endif
|
||||
current_module=NULL;
|
||||
|
||||
if(stream_cache_size) stream_enable_cache(stream,stream_cache_size*1024);
|
||||
// initial prefill: 20% later: 5% (should be set by -cacheopts)
|
||||
if(stream_cache_size) stream_enable_cache(stream,stream_cache_size*1024,stream_cache_size*1024/5,stream_cache_size*1024/20);
|
||||
|
||||
use_stdin=filename && (!strcmp(filename,"-"));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user