# HG changeset patch # User lorenm # Date 1136273399 0 # Node ID 0c031c0ba80b05b03c0d0ccdeb01a3b80e87e7b2 # Parent 4c86d2479aa247acaa5ea6f8931d7452ad993c0d h264es: don't seek to non-keyframes diff -r 4c86d2479aa2 -r 0c031c0ba80b libmpdemux/demux_mpg.c --- 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! }