[MPlayer-cvslog] CVS: main/libmpdemux mpeg_hdr.c,1.17,1.18

Nico Sabbi CVS syncmail at mplayerhq.hu
Sun Mar 26 00:07:30 CET 2006


CVS change done by Nico Sabbi CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv32713

Modified Files:
	mpeg_hdr.c 
Log Message:
H264: when fixed_fps is set the framerate is expressed in fields per second, so it must be halved

Index: mpeg_hdr.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/mpeg_hdr.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- mpeg_hdr.c	30 Aug 2005 22:07:30 -0000	1.17
+++ mpeg_hdr.c	25 Mar 2006 23:07:28 -0000	1.18
@@ -287,6 +287,8 @@
     
     if(picture->timeinc_unit > 0 && picture->timeinc_resolution > 0)
       picture->fps = (float) picture->timeinc_resolution / (float) picture->timeinc_unit;
+    if(fixed_fps)
+      picture->fps /= 2;
   }
   
   //fprintf(stderr, "H264_PARSE_VUI, OVESCAN=%u, VSP_COLOR=%u, CHROMA=%u, TIMING=%u, DISPW=%u, DISPH=%u, TIMERES=%u, TIMEINC=%u, FIXED_FPS=%u\n", overscan, vsp_color, chroma, timing, picture->display_picture_width, picture->display_picture_height,




More information about the MPlayer-cvslog mailing list