[MPlayer-dev-eng] Patch to fix seeking in H264 TS

Ian Rickards ian.rickards at btinternet.com
Fri Feb 15 05:27:50 CET 2008


Hi all,

First time poster to this list, please be gentle!

mplayer doesn't seek in BBC HD H.264 transport streams; when you try to seek it gets stuck looping forever in demux_seek_ts waiting for a 0x105 packet that doesn't ever arrive.  The following fixes it, and matches the code on line 239 of video.c to sync to a mpeg slice:

demux_ts.c
@@ -3164,7 +3167,7 @@
                        break;
                else    //H264
                {
-                       if((i & ~0x60) == 0x105) break;
+                       if((i & ~0x60) == 0x105 || (i & ~0x60) == 0x102 || (i & ~0x60) == 0x101) break;
                }

                if(!i || !skip_video_packet(d_video)) break; // EOF?


PS. thanks to all the developers, I now have glitch-free BBC HD playback on a 3.0GHz E8400.




More information about the MPlayer-dev-eng mailing list