1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

avfilter/f_ebur128: set video outlink timebase and framerate

This commit is contained in:
Paul B Mahol 2022-02-25 15:40:25 +01:00
parent e3f07185ed
commit 68bc9773cf

View File

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