summaryrefslogtreecommitdiffstats
path: root/mencoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'mencoder.c')
-rw-r--r--mencoder.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mencoder.c b/mencoder.c
index 029a980fde..cadb079c95 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -1684,8 +1684,11 @@ static int slowseek(float end_pts, demux_stream_t *d_video, demux_stream_t *d_au
a_pts = forward_audio(sh_video->pts - frame_data->frame_time + audio_delay, d_audio, mux_a);
if (done) {
- frame_data->already_read = 1;
- if (!framecopy || (sh_video->ds->flags & 1)) return 1;
+ // wait for keyframe in case of -ovc copy
+ if (!framecopy || (sh_video->ds->flags & 1)) {
+ frame_data->already_read = 1;
+ return 1;
+ }
}
if (sh_video->pts >= end_pts) done = 1;