changeset 17821:6be72b753b82

check sh_video before seeking; closes cid 56
author nicodvb
date Sun, 12 Mar 2006 12:13:37 +0000
parents 4e04e61b54ac
children 24fc4279bf99
files libmpdemux/demux_mpg.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mpg.c	Sun Mar 12 11:45:27 2006 +0000
+++ b/libmpdemux/demux_mpg.c	Sun Mar 12 12:13:37 2006 +0000
@@ -752,6 +752,7 @@
 	      continue;
 	    }
           }
+	  if(!sh_video) break;
           i=sync_video_packet(d_video);
           if(sh_video->format == 0x10000004) {	//mpeg4
             if(i==0x1B6) {			//vop (frame) startcode