Mercurial > mplayer.hg
changeset 24912:384aa7179c9c
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
author | nicodvb |
---|---|
date | Fri, 02 Nov 2007 23:05:51 +0000 |
parents | 475c585b0c77 |
children | 38f25bdb3cbc |
files | libmpdemux/video.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;