summaryrefslogtreecommitdiffstats
path: root/mencoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'mencoder.c')
-rw-r--r--mencoder.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mencoder.c b/mencoder.c
index 088c77ef6d..d0e01a0bd4 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -382,7 +382,7 @@ if(stream->type==STREAMTYPE_DVD){
}
#endif
- if(stream_cache_size) stream_enable_cache(stream,stream_cache_size*1024,0,0);
+ stream->start_pos+=seek_to_byte;
#ifdef HAVE_LIBCSS
// current_module="libcss";
@@ -403,6 +403,8 @@ if(stream->type==STREAMTYPE_DVD){
}
#endif
+ if(stream_cache_size) stream_enable_cache(stream,stream_cache_size*1024,0,0);
+
if(!has_audio || demuxer2) audio_id=-2; /* do NOT read audio packets... */
//demuxer=demux_open(stream,file_format,video_id,audio_id,dvdsub_id);