1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

ass: fix DAR calculation.

Found-by: REN Lifeng <renlifeng@wowfly.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-03-16 04:35:21 +01:00
parent 4257ce112c
commit b89f94077d

View File

@ -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);