diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-05-05 16:07:07 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-05-05 17:20:14 +0200 |
commit | 24f16b798e9bcd1090c47e64b53ec5c62c4f3f0a (patch) | |
tree | c9333017102673839d5220e49d99db20767d7eec /libavfilter/af_join.c | |
parent | 67ca64c24bfdb1233ed2f5343232172f8b4b20c6 (diff) | |
download | ffmpeg-24f16b798e9bcd1090c47e64b53ec5c62c4f3f0a.tar.gz |
avfilter/af_join: set output frame duration
Diffstat (limited to 'libavfilter/af_join.c')
-rw-r--r-- | libavfilter/af_join.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/af_join.c b/libavfilter/af_join.c index dc075a8b27..605d73d2cc 100644 --- a/libavfilter/af_join.c +++ b/libavfilter/af_join.c @@ -520,6 +520,10 @@ static int try_push_frame(AVFilterContext *ctx) } 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 FF_DISABLE_DEPRECATION_WARNINGS frame->channel_layout = outlink->channel_layout; |