mirror of
https://github.com/mpv-player/mpv
synced 2025-01-26 01:23:17 +00:00
H264: when fixed_fps is set the framerate is expressed in fields per second, so it must be halved
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17953 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
894097dc5a
commit
0b0fac0e9c
@ -287,6 +287,8 @@ static int h264_parse_vui(mp_mpeg_header_t * picture, unsigned char * buf, unsig
|
||||
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user