1000l fix for mencoder -hr-edl-seek with -ovc copy, waiting for keyframe

created infinite loop


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22248 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ods15 2007-02-17 16:30:59 +00:00
parent 099c9b26f4
commit 500ca8e218
1 changed files with 5 additions and 2 deletions

View File

@ -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;