diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-03-01 00:16:00 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-03-01 00:16:00 +0000 |
commit | a5dbb247af9f02cff4899f16d3a87f49fe16727a (patch) | |
tree | 4975853ad6e6c5c2c62f08ebe4c3f79b31921297 /libavcodec/mpeg12data.h | |
parent | 179386025eadce8a440a548b78008342de7c73a3 (diff) | |
download | ffmpeg-a5dbb247af9f02cff4899f16d3a87f49fe16727a.tar.gz |
fixing inaccurate frame_rate
Originally committed as revision 1616 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12data.h')
-rw-r--r-- | libavcodec/mpeg12data.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavcodec/mpeg12data.h b/libavcodec/mpeg12data.h index ad5ae2ca5a..4a90bbdb72 100644 --- a/libavcodec/mpeg12data.h +++ b/libavcodec/mpeg12data.h @@ -386,14 +386,14 @@ static const uint8_t mbMotionVectorTable[17][2] = { static const int frame_rate_tab[9] = { 0, - (int)(23.976 * FRAME_RATE_BASE), - (int)(24 * FRAME_RATE_BASE), - (int)(25 * FRAME_RATE_BASE), - (int)(29.97 * FRAME_RATE_BASE), - (int)(30 * FRAME_RATE_BASE), - (int)(50 * FRAME_RATE_BASE), - (int)(59.94 * FRAME_RATE_BASE), - (int)(60 * FRAME_RATE_BASE), + 24000 * FRAME_RATE_BASE / 1001, + 24000 * FRAME_RATE_BASE / 1000, + 25000 * FRAME_RATE_BASE / 1000, + 30000 * FRAME_RATE_BASE / 1001, + 30000 * FRAME_RATE_BASE / 1000, + 50000 * FRAME_RATE_BASE / 1000, + 60000 * FRAME_RATE_BASE / 1001, + 60000 * FRAME_RATE_BASE / 1000, }; static const uint8_t non_linear_qscale[32] = { |