ffmpeg | branch: master | Stephen Hutchinson <qyo...@gmail.com> | Sun Aug 7 21:25:31 2022 -0400| [dc9843d82932ba93f616f5e2893fd5c2576468c3] | committer: James Almer
avformat/avisynth: use ch_layout.nb_channels for channel count Fixes deprecation warning Signed-off-by: James Almer <jamr...@gmail.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dc9843d82932ba93f616f5e2893fd5c2576468c3 --- libavformat/avisynth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c index a97d12b6b6..ec595dab79 100644 --- a/libavformat/avisynth.c +++ b/libavformat/avisynth.c @@ -752,7 +752,7 @@ static int avisynth_create_stream_audio(AVFormatContext *s, AVStream *st) st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; st->codecpar->sample_rate = avs->vi->audio_samples_per_second; - st->codecpar->channels = avs->vi->nchannels; + st->codecpar->ch_layout.nb_channels = avs->vi->nchannels; st->duration = avs->vi->num_audio_samples; avpriv_set_pts_info(st, 64, 1, avs->vi->audio_samples_per_second); _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".