diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-16 07:35:21 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-16 07:35:21 +0400 |
commit | b89f94077d85c33cac4a99ccfb024bbb284a8bab (patch) | |
tree | 6a348e66e6ebfbad7d084a98d9dc4ecd04c3f69e /libavfilter/vf_ass.c | |
parent | 4257ce112c41f741408b817d305630dadc3ee52d (diff) |
ass: fix DAR calculation.
Found-by: REN Lifeng <renlifeng@wowfly.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_ass.c')
-rw-r--r-- | libavfilter/vf_ass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_ass.c b/libavfilter/vf_ass.c index 7ef78f1b16..774ea09e31 100644 --- a/libavfilter/vf_ass.c +++ b/libavfilter/vf_ass.c @@ -134,7 +134,7 @@ static int config_input(AVFilterLink *inlink) const AVPixFmtDescriptor *pix_desc = &av_pix_fmt_descriptors[inlink->format]; double sar = inlink->sample_aspect_ratio.num ? av_q2d(inlink->sample_aspect_ratio) : 1; - double dar = inlink->w / inlink->h * sar; + double dar = inlink->w / (double)inlink->h * sar; av_image_fill_max_pixsteps(ass->pix_step, NULL, pix_desc); ff_fill_rgba_map(ass->rgba_map, inlink->format); |