mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/af_amultiply: set output frame duration
This commit is contained in:
parent
8b9c400f1d
commit
358aced447
|
@ -74,6 +74,7 @@ static int activate(AVFilterContext *ctx)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
out->pts = s->frames[0]->pts;
|
out->pts = s->frames[0]->pts;
|
||||||
|
out->duration = s->frames[0]->duration;
|
||||||
|
|
||||||
if (av_get_packed_sample_fmt(ctx->inputs[0]->format) == AV_SAMPLE_FMT_FLT) {
|
if (av_get_packed_sample_fmt(ctx->inputs[0]->format) == AV_SAMPLE_FMT_FLT) {
|
||||||
for (i = 0; i < s->planes; i++) {
|
for (i = 0; i < s->planes; i++) {
|
||||||
|
|
Loading…
Reference in New Issue