mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-05-01 06:13:08 +08:00
avformat/avisynth: use ch_layout.nb_channels for channel count
Fixes deprecation warning
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit dc9843d829)
This commit is contained in:
committed by
James Almer
parent
aba74d7843
commit
ffaf606130
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user