Mercurial > mplayer.hg
comparison libmpdemux/demux_avs.c @ 26472:67930b46705d
Calculate fps as double-precision to make switching to double-precision fps values easier.
author | reimar |
---|---|
date | Wed, 23 Apr 2008 07:49:51 +0000 |
parents | baf32110d3fc |
children | 47864c18ff54 |
comparison
equal
deleted
inserted
replaced
26471:f29c190fdb10 | 26472:67930b46705d |
---|---|
297 sh_video->disp_w = AVS->video_info->width; | 297 sh_video->disp_w = AVS->video_info->width; |
298 sh_video->disp_h = AVS->video_info->height; | 298 sh_video->disp_h = AVS->video_info->height; |
299 | 299 |
300 //sh_video->format = get_mmioFOURCC(AVS->video_info); | 300 //sh_video->format = get_mmioFOURCC(AVS->video_info); |
301 sh_video->format = mmioFOURCC('Y', 'V', '1', '2'); | 301 sh_video->format = mmioFOURCC('Y', 'V', '1', '2'); |
302 sh_video->fps = (float) ((float) AVS->video_info->fps_numerator / (float) AVS->video_info->fps_denominator); | 302 sh_video->fps = (double) AVS->video_info->fps_numerator / (double) AVS->video_info->fps_denominator; |
303 sh_video->frametime = 1.0 / sh_video->fps; | 303 sh_video->frametime = 1.0 / sh_video->fps; |
304 | 304 |
305 sh_video->bih = malloc(sizeof(BITMAPINFOHEADER) + (256 * 4)); | 305 sh_video->bih = malloc(sizeof(BITMAPINFOHEADER) + (256 * 4)); |
306 sh_video->bih->biCompression = sh_video->format; | 306 sh_video->bih->biCompression = sh_video->format; |
307 sh_video->bih->biBitCount = avs_bits_per_pixel(AVS->video_info); | 307 sh_video->bih->biBitCount = avs_bits_per_pixel(AVS->video_info); |