aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpeg12data.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-03-12 15:16:19 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-03-12 15:16:19 +0000
commit14bea432f16d7c66f9099e427819028b6b4c3bdc (patch)
treec52726ce14a0265337b9deebd2214e2552d284b0 /libavcodec/mpeg12data.h
parent586bc7553ca90dee507afd950de64bbd2c6a80b5 (diff)
downloadffmpeg-14bea432f16d7c66f9099e427819028b6b4c3bdc.tar.gz
per context frame_rate_base, this should finally fix frame_rate related av sync issues
Originally committed as revision 1666 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12data.h')
-rw-r--r--libavcodec/mpeg12data.h32
1 files changed, 22 insertions, 10 deletions
diff --git a/libavcodec/mpeg12data.h b/libavcodec/mpeg12data.h
index d18640d074..16d607067f 100644
--- a/libavcodec/mpeg12data.h
+++ b/libavcodec/mpeg12data.h
@@ -385,16 +385,28 @@ static const uint8_t mbMotionVectorTable[17][2] = {
{ 0xc, 10 },
};
-static const int frame_rate_tab[9] = {
- 0,
- 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,
+#define MPEG1_FRAME_RATE_BASE 1001
+
+static const int frame_rate_tab[16] = {
+ 0,
+ 24000,
+ 24024,
+ 25025,
+ 30000,
+ 30030,
+ 50050,
+ 60000,
+ 60060,
+ // Xing's 15fps: (9)
+ 15015,
+ // libmpeg3's "Unofficial economy rates": (10-13)
+ 5005,
+ 10010,
+ 12012,
+ 15015,
+ // random, just to avoid segfault !never encode these
+ 25025,
+ 25025,
};
static const uint8_t non_linear_qscale[32] = {