From a6e05bcdbbb9a4a9424b3e528e361abc5ed8aa10 Mon Sep 17 00:00:00 2001 From: rfelker Date: Sat, 6 Aug 2005 16:15:07 +0000 Subject: 100l to whoever wrote this crap using 1/10000 units. it caused framerates to get trashed from 30000/1001 to 2997/100, etc.! git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16185 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/mpeg_hdr.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libmpdemux/mpeg_hdr.c') diff --git a/libmpdemux/mpeg_hdr.c b/libmpdemux/mpeg_hdr.c index a31bd32f84..a204a2a2e4 100644 --- a/libmpdemux/mpeg_hdr.c +++ b/libmpdemux/mpeg_hdr.c @@ -8,16 +8,16 @@ #include "config.h" #include "mpeg_hdr.h" -static int frameratecode2framerate[16] = { +static float frameratecode2framerate[16] = { 0, // Official mpeg1/2 framerates: (1-8) - 24000*10000/1001, 24*10000,25*10000, - 30000*10000/1001, 30*10000,50*10000, - 60000*10000/1001, 60*10000, + 24000.0/1001, 24,25, + 30000.0/1001, 30,50, + 60000.0/1001, 60, // Xing's 15fps: (9) - 15*10000, + 15, // libmpeg3's "Unofficial economy rates": (10-13) - 5*10000,10*10000,12*10000,15*10000, + 5,10,12,15, // some invalid ones: (14-15) 0,0 }; -- cgit v1.2.3