diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-11-25 11:52:55 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-12-07 11:16:14 +0100 |
commit | 177a328c7c7e3a2c10296abf20b0b40207153c76 (patch) | |
tree | 2e430a459a2225a41780711f844157ed25b4ac61 /libavfilter/vf_subtitles.c | |
parent | 877b6a9e82f73e772b8ac40d4b119f21ee037f0f (diff) | |
download | ffmpeg-177a328c7c7e3a2c10296abf20b0b40207153c76.tar.gz |
lavfi/vf_subtitles: stop using deprecated ass_set_aspect_ratio()
It has been deprecated in favor of ass_set_pixel_aspect() since version
0.11.0, roughly ~2014. Even Debian oldoldstable (stretch) has 0.13.
Diffstat (limited to 'libavfilter/vf_subtitles.c')
-rw-r--r-- | libavfilter/vf_subtitles.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c index 377160c72b..3fc4eeb63d 100644 --- a/libavfilter/vf_subtitles.c +++ b/libavfilter/vf_subtitles.c @@ -147,8 +147,8 @@ static int config_input(AVFilterLink *inlink) ass_set_frame_size (ass->renderer, inlink->w, inlink->h); if (ass->original_w && ass->original_h) - ass_set_aspect_ratio(ass->renderer, (double)inlink->w / inlink->h, - (double)ass->original_w / ass->original_h); + ass_set_pixel_aspect(ass->renderer, (double)inlink->w / inlink->h / + ((double)ass->original_w / ass->original_h)); if (ass->shaping != -1) ass_set_shaper(ass->renderer, ass->shaping); |