History

avfilter/af_amerge: set output frame duration

Paul B Mahol committed 3 years ago

Commit 217bb591 parent 6f1c82f1 file · +4 −0Browse files

Unified · Split

libavfilter/af_amerge.c+4−0
@@ -243,6 +243,10 @@ static int try_push_frame(AVFilterContext *ctx, int nb_samples) · 242 unmodified lines
243 outbuf->pts = inbuf[0]->pts;243 outbuf->pts = inbuf[0]->pts;
244 244
245 outbuf->nb_samples = nb_samples;245 outbuf->nb_samples = nb_samples;
246 outbuf->duration = av_rescale_q(outbuf->nb_samples,
247 av_make_q(1, outlink->sample_rate),
248 outlink->time_base);
249
246 if ((ret = av_channel_layout_copy(&outbuf->ch_layout, &outlink->ch_layout)) < 0)250 if ((ret = av_channel_layout_copy(&outbuf->ch_layout, &outlink->ch_layout)) < 0)
247 return ret;251 return ret;
248#if FF_API_OLD_CHANNEL_LAYOUT252#if FF_API_OLD_CHANNEL_LAYOUT

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t