diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-03-31 18:35:41 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:37 -0300 |
commit | a6b5153df5bd6181b5e99251a7077826222fb331 (patch) | |
tree | e76831b6f62d6299ef87eb636241f76093dc1c8c /libavformat | |
parent | 6f1a9effef99696cd7ddf522123c09920f3a8753 (diff) | |
download | ffmpeg-a6b5153df5bd6181b5e99251a7077826222fb331.tar.gz |
sol: 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/sol.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/sol.c b/libavformat/sol.c index 42498492b6..b92cfb36fe 100644 --- a/libavformat/sol.c +++ b/libavformat/sol.c @@ -113,9 +113,7 @@ static int sol_read_header(AVFormatContext *s) st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; st->codecpar->codec_tag = id; st->codecpar->codec_id = codec; - st->codecpar->channels = channels; - st->codecpar->channel_layout = channels == 1 ? AV_CH_LAYOUT_MONO : - AV_CH_LAYOUT_STEREO; + av_channel_layout_default(&st->codecpar->ch_layout,channels); st->codecpar->sample_rate = rate; avpriv_set_pts_info(st, 64, 1, rate); return 0; |