diff options
author | Stephen Hutchinson <qyot27@gmail.com> | 2022-08-07 21:25:31 -0400 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-08-07 22:41:57 -0300 |
commit | dc9843d82932ba93f616f5e2893fd5c2576468c3 (patch) | |
tree | 2dd427bca0e769f5723a73d7611af9e36aa4a86e /libavformat/avisynth.c | |
parent | 26180e8855327cd5fed517c5931c5e05446318f4 (diff) | |
download | ffmpeg-dc9843d82932ba93f616f5e2893fd5c2576468c3.tar.gz |
avformat/avisynth: use ch_layout.nb_channels for channel count
Fixes deprecation warning
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/avisynth.c')
-rw-r--r-- | libavformat/avisynth.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |