summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmpdemux/video.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpdemux/video.c b/libmpdemux/video.c
index 16bb322be4..311b72d9ed 100644
--- a/libmpdemux/video.c
+++ b/libmpdemux/video.c
@@ -609,6 +609,8 @@ int video_read_frame(sh_video_t* sh_video,float* frame_time_ptr,unsigned char**
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;