avfilter/af_join: set output frame duration

pull/389/head
Paul B Mahol 2 years ago
parent 67ca64c24b
commit 24f16b798e
  1. 4
      libavfilter/af_join.c

@ -520,6 +520,10 @@ static int try_push_frame(AVFilterContext *ctx)
} }
frame->nb_samples = nb_samples; frame->nb_samples = nb_samples;
frame->duration = av_rescale_q(frame->nb_samples,
av_make_q(1, outlink->sample_rate),
outlink->time_base);
#if FF_API_OLD_CHANNEL_LAYOUT #if FF_API_OLD_CHANNEL_LAYOUT
FF_DISABLE_DEPRECATION_WARNINGS FF_DISABLE_DEPRECATION_WARNINGS
frame->channel_layout = outlink->channel_layout; frame->channel_layout = outlink->channel_layout;

Loading…
Cancel
Save