Mercurial > mplayer.hg
changeset 22155:bea181ba1df4
when seeking and the codec is VC1 sync to sequence or entry point headers
author | nicodvb |
---|---|
date | Wed, 07 Feb 2007 23:56:08 +0000 |
parents | 1dc228327c55 |
children | 5b8b1e85db32 |
files | libmpdemux/demux_mpg.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_mpg.c Wed Feb 07 23:41:07 2007 +0000 +++ b/libmpdemux/demux_mpg.c Wed Feb 07 23:56:08 2007 +0000 @@ -918,6 +918,10 @@ } if(!sh_video) break; i=sync_video_packet(d_video); + if(sh_video->format == mmioFOURCC('W', 'V', 'C', '1')) { + if(i==0x10E || i==0x10F) //entry point or sequence header + break; + } else if(sh_video->format == 0x10000004) { //mpeg4 if(i==0x1B6) { //vop (frame) startcode int pos = videobuf_len;