[FFmpeg-cvslog] avfilter/f_ebur128: set video outlink timebase and framerate
Paul B Mahol
git at videolan.org
Fri Feb 25 19:15:34 EET 2022
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Feb 25 15:40:25 2022 +0100| [68bc9773cf9c0ad698876424f7d294e4244d3819] | committer: Paul B Mahol
avfilter/f_ebur128: set video outlink timebase and framerate
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=68bc9773cf9c0ad698876424f7d294e4244d3819
---
libavfilter/f_ebur128.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavfilter/f_ebur128.c b/libavfilter/f_ebur128.c
index f71f32a9d4..86ec6ce369 100644
--- a/libavfilter/f_ebur128.c
+++ b/libavfilter/f_ebur128.c
@@ -279,6 +279,7 @@ static int config_video_output(AVFilterLink *outlink)
int i, x, y;
uint8_t *p;
AVFilterContext *ctx = outlink->src;
+ AVFilterLink *inlink = ctx->inputs[0];
EBUR128Context *ebur128 = ctx->priv;
AVFrame *outpicref;
@@ -291,6 +292,8 @@ static int config_video_output(AVFilterLink *outlink)
outlink->w = ebur128->w;
outlink->h = ebur128->h;
outlink->sample_aspect_ratio = (AVRational){1,1};
+ outlink->time_base = inlink->time_base;
+ outlink->frame_rate = av_make_q(10, 1);
#define PAD 8
More information about the ffmpeg-cvslog
mailing list