Mercurial > mplayer.hg
comparison libmpdemux/demux_mpg.c @ 17821:6be72b753b82
check sh_video before seeking; closes cid 56
author | nicodvb |
---|---|
date | Sun, 12 Mar 2006 12:13:37 +0000 |
parents | 7d5716fd634c |
children | 24fc4279bf99 |
comparison
equal
deleted
inserted
replaced
17820:4e04e61b54ac | 17821:6be72b753b82 |
---|---|
750 if(d_video->pts>a_pts){ | 750 if(d_video->pts>a_pts){ |
751 skip_audio_frame(sh_audio); // sync audio | 751 skip_audio_frame(sh_audio); // sync audio |
752 continue; | 752 continue; |
753 } | 753 } |
754 } | 754 } |
755 if(!sh_video) break; | |
755 i=sync_video_packet(d_video); | 756 i=sync_video_packet(d_video); |
756 if(sh_video->format == 0x10000004) { //mpeg4 | 757 if(sh_video->format == 0x10000004) { //mpeg4 |
757 if(i==0x1B6) { //vop (frame) startcode | 758 if(i==0x1B6) { //vop (frame) startcode |
758 int pos = videobuf_len; | 759 int pos = videobuf_len; |
759 if(!read_video_packet(d_video)) break; // EOF | 760 if(!read_video_packet(d_video)) break; // EOF |