Message ID | 20220808012532.41519-3-qyot27@gmail.com |
---|---|
State | Accepted |
Commit | dc9843d82932ba93f616f5e2893fd5c2576468c3 |
Headers | show |
Series | avisynth: miscellaneous fixes | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
On 8/7/2022 10:25 PM, Stephen Hutchinson wrote: > Fixes deprecation warning > --- > libavformat/avisynth.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c > index 98b4d68a57..5605fbefc4 100644 > --- a/libavformat/avisynth.c > +++ b/libavformat/avisynth.c > @@ -753,7 +753,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); Applied and backported to 5.1. Can't believe we missed this...
diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c index 98b4d68a57..5605fbefc4 100644 --- a/libavformat/avisynth.c +++ b/libavformat/avisynth.c @@ -753,7 +753,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);