fixing inaccurate frame_rate
Originally committed as revision 1616 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
179386025e
commit
a5dbb247af
@ -169,7 +169,7 @@ static const int Motion_Est_QTab[] = { ME_ZERO, ME_PHODS, ME_LOG,
|
|||||||
#define CODEC_CAP_PARSE_ONLY 0x0004
|
#define CODEC_CAP_PARSE_ONLY 0x0004
|
||||||
#define CODEC_CAP_TRUNCATED 0x0008
|
#define CODEC_CAP_TRUNCATED 0x0008
|
||||||
|
|
||||||
#define FRAME_RATE_BASE 10000
|
#define FRAME_RATE_BASE 10010
|
||||||
|
|
||||||
#define FF_COMMON_FRAME \
|
#define FF_COMMON_FRAME \
|
||||||
uint8_t *data[4];\
|
uint8_t *data[4];\
|
||||||
|
@ -386,14 +386,14 @@ static const uint8_t mbMotionVectorTable[17][2] = {
|
|||||||
|
|
||||||
static const int frame_rate_tab[9] = {
|
static const int frame_rate_tab[9] = {
|
||||||
0,
|
0,
|
||||||
(int)(23.976 * FRAME_RATE_BASE),
|
24000 * FRAME_RATE_BASE / 1001,
|
||||||
(int)(24 * FRAME_RATE_BASE),
|
24000 * FRAME_RATE_BASE / 1000,
|
||||||
(int)(25 * FRAME_RATE_BASE),
|
25000 * FRAME_RATE_BASE / 1000,
|
||||||
(int)(29.97 * FRAME_RATE_BASE),
|
30000 * FRAME_RATE_BASE / 1001,
|
||||||
(int)(30 * FRAME_RATE_BASE),
|
30000 * FRAME_RATE_BASE / 1000,
|
||||||
(int)(50 * FRAME_RATE_BASE),
|
50000 * FRAME_RATE_BASE / 1000,
|
||||||
(int)(59.94 * FRAME_RATE_BASE),
|
60000 * FRAME_RATE_BASE / 1001,
|
||||||
(int)(60 * FRAME_RATE_BASE),
|
60000 * FRAME_RATE_BASE / 1000,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const uint8_t non_linear_qscale[32] = {
|
static const uint8_t non_linear_qscale[32] = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user