diff options
author | Anton Khirnov <anton@khirnov.net> | 2019-05-13 11:11:26 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:37 -0300 |
commit | 3c659bc43e0b5c3e15f2cefdc4b0566c1c4dc554 (patch) | |
tree | ad88db212ac20b2f2337fdc90274de2da2da329d /libavformat/sdr2.c | |
parent | ca36f0ece801801862888d7bcad8e6ac43713d37 (diff) | |
download | ffmpeg-3c659bc43e0b5c3e15f2cefdc4b0566c1c4dc554.tar.gz |
sdr2: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/sdr2.c')
-rw-r--r-- | libavformat/sdr2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/sdr2.c b/libavformat/sdr2.c index 6799339420..3023d5f7d1 100644 --- a/libavformat/sdr2.c +++ b/libavformat/sdr2.c @@ -54,7 +54,7 @@ static int sdr2_read_header(AVFormatContext *s) ffstream(st)->need_parsing = AVSTREAM_PARSE_FULL; ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; - ast->codecpar->channels = 1; + ast->codecpar->ch_layout.nb_channels = 1; ast->codecpar->sample_rate = 8000; ast->codecpar->codec_id = AV_CODEC_ID_PCM_S16LE; avpriv_set_pts_info(ast, 64, 1, 8000); |