diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-03-21 17:54:08 +0400 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-03-21 18:14:28 +0400 |
commit | c9399538b7561a27743e6a6c8a5784aa8c3f5805 (patch) | |
tree | 33884cc77d3036faa80540c1ca4d7216ae3d2781 /libavfilter/vf_ass.c | |
parent | e71e65ff1d7e4b70db34aa169556cf77ae25608a (diff) |
lavfi/ass: use a default DAR value of 1.0
Previously it was using the same value of the input video DAR, which is
inconsistent with most implementations.
Fix trac ticket #1098.
Diffstat (limited to 'libavfilter/vf_ass.c')
-rw-r--r-- | libavfilter/vf_ass.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/vf_ass.c b/libavfilter/vf_ass.c index 774ea09e31..b63d0db5bb 100644 --- a/libavfilter/vf_ass.c +++ b/libavfilter/vf_ass.c @@ -134,7 +134,6 @@ 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 / (double)inlink->h * sar; av_image_fill_max_pixsteps(ass->pix_step, NULL, pix_desc); ff_fill_rgba_map(ass->rgba_map, inlink->format); @@ -143,7 +142,7 @@ static int config_input(AVFilterLink *inlink) ass->vsub = pix_desc->log2_chroma_h; ass_set_frame_size (ass->renderer, inlink->w, inlink->h); - ass_set_aspect_ratio(ass->renderer, dar, sar); + ass_set_aspect_ratio(ass->renderer, 1.0, sar); return 0; } |