diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-08-06 08:50:21 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-08-15 19:34:27 +0200 |
commit | a23d565ea7d41e61f160578f9714a23e695f3bfd (patch) | |
tree | 4f49446e8da10c5496cffbd1e0e3270b61ca7381 /libavfilter/avf_ahistogram.c | |
parent | d6318a244d1dde48c1429c48b4076df47c2c7fe9 (diff) | |
download | ffmpeg-a23d565ea7d41e61f160578f9714a23e695f3bfd.tar.gz |
lavfi: move AVFilterLink.frame_rate to FilterLink
Co-developed-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter/avf_ahistogram.c')
-rw-r--r-- | libavfilter/avf_ahistogram.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavfilter/avf_ahistogram.c b/libavfilter/avf_ahistogram.c index 6fb3f64ac9..23239b1b72 100644 --- a/libavfilter/avf_ahistogram.c +++ b/libavfilter/avf_ahistogram.c @@ -161,12 +161,13 @@ static int get_log_bin_sign(float in, int w) static int config_output(AVFilterLink *outlink) { AudioHistogramContext *s = outlink->src->priv; + FilterLink *l = ff_filter_link(outlink); outlink->w = s->w; outlink->h = s->h; outlink->sample_aspect_ratio = (AVRational){1,1}; - outlink->frame_rate = s->frame_rate; - outlink->time_base = av_inv_q(outlink->frame_rate); + l->frame_rate = s->frame_rate; + outlink->time_base = av_inv_q(l->frame_rate); s->histogram_h = s->h * s->phisto; s->ypos = s->h * s->phisto; |