# HG changeset patch # User nicodvb # Date 1194044751 0 # Node ID 384aa7179c9c2f19de5e4f762fd659ee971cc9ea # Parent 475c585b0c77c9cc77a9a198290f70c6e0f06b11 in video_read_frame() set the keyframe flag in demuxer->video when dealing with VIDEO_MPEG12 and picture_coding_type==I_FRAME; fixes seeking in avi streams with MPEG1/2 video diff -r 475c585b0c77 -r 384aa7179c9c libmpdemux/video.c --- a/libmpdemux/video.c Fri Nov 02 22:43:17 2007 +0000 +++ b/libmpdemux/video.c Fri Nov 02 23:05:51 2007 +0000 @@ -609,6 +609,8 @@ if(video_codec == VIDEO_MPEG12){ sh_video->pts+=frame_time; + if(picture_coding_type==1) + d_video->flags |= 1; if(picture_coding_type<=2 && sh_video->i_pts){ sh_video->pts=sh_video->i_pts; sh_video->i_pts=pts;