diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-03-31 14:20:59 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:33 -0300 |
commit | 2f271172b011bda16b3182fa55655763b65902f3 (patch) | |
tree | b6c37340bbb35fcc616ba0c885cfa0d13645b389 /libavformat | |
parent | 8950839aaca748ccbc463615a3515ca83c0ada65 (diff) | |
download | ffmpeg-2f271172b011bda16b3182fa55655763b65902f3.tar.gz |
ilbc: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/ilbc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/ilbc.c b/libavformat/ilbc.c index 0cbdd3d5b8..361116571f 100644 --- a/libavformat/ilbc.c +++ b/libavformat/ilbc.c @@ -75,7 +75,7 @@ static int ilbc_read_header(AVFormatContext *s) return AVERROR(ENOMEM); st->codecpar->codec_id = AV_CODEC_ID_ILBC; st->codecpar->sample_rate = 8000; - st->codecpar->channels = 1; + st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO; st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; st->start_time = 0; avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate); |