1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-25 04:38:01 +00:00

check sh_video before seeking; closes cid 56

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17822 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2006-03-12 12:13:37 +00:00
parent 4a8bf87b5c
commit c164e2dd44

View File

@ -752,6 +752,7 @@ void demux_seek_mpg(demuxer_t *demuxer,float rel_seek_secs,float audio_delay, in
continue;
}
}
if(!sh_video) break;
i=sync_video_packet(d_video);
if(sh_video->format == 0x10000004) { //mpeg4
if(i==0x1B6) { //vop (frame) startcode