changeset 17952:7ad7d20cfadc

H264: when fixed_fps is set the framerate is expressed in fields per second, so it must be halved
author nicodvb
date Sat, 25 Mar 2006 23:07:28 +0000
parents 810177996118
children 2cfdd3cf44de
files libmpdemux/mpeg_hdr.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/mpeg_hdr.c	Sat Mar 25 22:41:15 2006 +0000
+++ b/libmpdemux/mpeg_hdr.c	Sat Mar 25 23:07:28 2006 +0000
@@ -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,