mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 15:49:50 +08:00
avfilter: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@ -263,7 +263,7 @@ static int send_silence(AVFilterContext *ctx, unsigned in_no, unsigned out_no,
|
||||
if (!buf)
|
||||
return AVERROR(ENOMEM);
|
||||
av_samples_set_silence(buf->extended_data, 0, frame_nb_samples,
|
||||
outlink->channels, outlink->format);
|
||||
outlink->ch_layout.nb_channels, outlink->format);
|
||||
buf->pts = base_pts + av_rescale_q(sent, rate_tb, outlink->time_base);
|
||||
ret = ff_filter_frame(outlink, buf);
|
||||
if (ret < 0)
|
||||
|
Reference in New Issue
Block a user