diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-02-26 18:29:39 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-02-26 18:29:39 +0000 |
commit | 8d52ec7eb0cb18ee142c756af64c17f350b661b0 (patch) | |
tree | 6a7dcf35426e7deecae7013351dc7a69d57ae6bd /libavcodec/mpeg12data.h | |
parent | 71141d771a03942ebe6ed71f09f4d610ddec0202 (diff) | |
download | ffmpeg-8d52ec7eb0cb18ee142c756af64c17f350b661b0.tar.gz |
AVCodec.supported_framerates
Originally committed as revision 2821 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12data.h')
-rw-r--r-- | libavcodec/mpeg12data.h | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/libavcodec/mpeg12data.h b/libavcodec/mpeg12data.h index 42b3d49a1f..b5ae2bcb19 100644 --- a/libavcodec/mpeg12data.h +++ b/libavcodec/mpeg12data.h @@ -354,28 +354,24 @@ static const uint8_t mbMotionVectorTable[17][2] = { { 0xc, 10 }, }; -#define MPEG1_FRAME_RATE_BASE 1001 - -static const int frame_rate_tab[16] = { - 0, - 24000, - 24024, - 25025, - 30000, - 30030, - 50050, - 60000, - 60060, +static const AVRational frame_rate_tab[] = { + { 0, 0}, + {24000, 1001}, + { 24, 1}, + { 25, 1}, + {30000, 1001}, + { 30, 1}, + { 50, 1}, + {60000, 1001}, + { 60, 1}, // Xing's 15fps: (9) - 15015, + { 15, 1}, // libmpeg3's "Unofficial economy rates": (10-13) - 5005, - 10010, - 12012, - 15015, - // random, just to avoid segfault !never encode these - 25025, - 25025, + { 5, 1}, + { 10, 1}, + { 12, 1}, + { 15, 1}, + { 0, 0}, }; static const uint8_t non_linear_qscale[32] = { |