AVRational

sample_aspect_ratio
aspect ratio in JPEG JFIF is SAR not DAR !
removed nonsense SAR guessing code
various related cleanups
bugs?

Originally committed as revision 2403 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer
2003-10-20 20:23:46 +00:00
parent 9dad924e22
commit 5ff85f1d8b
20 changed files with 215 additions and 183 deletions

View File

@@ -416,11 +416,22 @@ static const float mpeg1_aspect[16]={
1.2015,
};
static const float mpeg2_aspect[16]={
0,
1.0,
-3.0/4.0,
-9.0/16.0,
-1.0/2.21,
static const AVRational mpeg2_aspect[16]={
{0,1},
{1,1},
{4,3},
{16,9},
{221,100},
{0,1},
{0,1},
{0,1},
{0,1},
{0,1},
{0,1},
{0,1},
{0,1},
{0,1},
{0,1},
{0,1},
};