From 5ff85f1d8b5721a9e7f0ca6e03f61f5d3a4c3664 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 20 Oct 2003 20:23:46 +0000 Subject: 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 --- libavcodec/mpeg12data.h | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'libavcodec/mpeg12data.h') diff --git a/libavcodec/mpeg12data.h b/libavcodec/mpeg12data.h index 938897528c..dd94bb572b 100644 --- a/libavcodec/mpeg12data.h +++ b/libavcodec/mpeg12data.h @@ -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}, }; -- cgit v1.2.3