diff options
author | James Almer <jamrial@gmail.com> | 2021-08-27 14:30:45 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:30 -0300 |
commit | ffc4fd3cc2ccb2cadb71f19849842b18ca1281c6 (patch) | |
tree | bb2ed0afa829d44db52b93d1fe3316de6bcacdd8 /libavdevice/alsa_dec.c | |
parent | 00c5526fc8bbfcd210f685c49bcd345fa2160b60 (diff) | |
download | ffmpeg-ffc4fd3cc2ccb2cadb71f19849842b18ca1281c6.tar.gz |
alsa: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavdevice/alsa_dec.c')
-rw-r--r-- | libavdevice/alsa_dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/alsa_dec.c b/libavdevice/alsa_dec.c index e93f31b146..b518bbdac6 100644 --- a/libavdevice/alsa_dec.c +++ b/libavdevice/alsa_dec.c @@ -82,7 +82,7 @@ static av_cold int audio_read_header(AVFormatContext *s1) st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; st->codecpar->codec_id = codec_id; st->codecpar->sample_rate = s->sample_rate; - st->codecpar->channels = s->channels; + st->codecpar->ch_layout.nb_channels = s->channels; st->codecpar->frame_size = s->frame_size; avpriv_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in us */ /* microseconds instead of seconds, MHz instead of Hz */ |