changeset 17289:0c031c0ba80b

h264es: don't seek to non-keyframes
author lorenm
date Tue, 03 Jan 2006 07:29:59 +0000
parents 4c86d2479aa2
children 468bab74883a
files libmpdemux/demux_mpg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mpg.c	Tue Jan 03 00:24:17 2006 +0000
+++ b/libmpdemux/demux_mpg.c	Tue Jan 03 07:29:59 2006 +0000
@@ -757,7 +757,7 @@
 	      if((videobuffer[pos+4] & 0x3F) == 0) break;	//I-frame
 	    }
           } else if(sh_video->format == 0x10000005){	//h264
-            if((i & ~0x60) == 0x101 || (i & ~0x60) == 0x102 || (i & ~0x60) == 0x105) break;
+            if((i & ~0x60) == 0x105) break;
           } else { 	//default mpeg1/2
 	    if(i==0x1B3 || i==0x1B8) break; // found it!
 	  }