diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-03-31 18:56:12 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:38 -0300 |
commit | b0e566119499482034edb282b6d92e102514318e (patch) | |
tree | 560de27ba09c9f7450e3fce50fe90c649e4b6fbb /libavformat | |
parent | 0116c9162ef64d89b36fa9efa84335ca35aa7c50 (diff) | |
download | ffmpeg-b0e566119499482034edb282b6d92e102514318e.tar.gz |
wtv: 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/wtvdec.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/wtvdec.c b/libavformat/wtvdec.c index 22e4c92565..087b44273e 100644 --- a/libavformat/wtvdec.c +++ b/libavformat/wtvdec.c @@ -584,11 +584,9 @@ static void parse_mpeg1waveformatex(AVStream *st) switch (AV_RL16(st->codecpar->extradata + 6)) { case 1 : case 2 : - case 4 : st->codecpar->channels = 2; - st->codecpar->channel_layout = AV_CH_LAYOUT_STEREO; + case 4 : st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_STEREO; break; - case 8 : st->codecpar->channels = 1; - st->codecpar->channel_layout = AV_CH_LAYOUT_MONO; + case 8 : st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO; break; } } |