mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avfilter/avf_abitscope: set output time_base and output frame duration
This commit is contained in:
parent
2c3f211b6d
commit
a13931843e
@ -143,6 +143,7 @@ static int config_output(AVFilterLink *outlink)
|
||||
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);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -233,7 +234,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
|
||||
outpicref->pts = insamples->pts;
|
||||
outpicref->pts = av_rescale_q(insamples->pts, inlink->time_base, outlink->time_base);
|
||||
outpicref->duration = 1;
|
||||
outpicref->sample_aspect_ratio = (AVRational){1,1};
|
||||
|
||||
switch (insamples->format) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user