diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-03-31 19:01:03 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:39 -0300 |
commit | bc67df697b300e0fd792bf46c7726ca8478cb2ef (patch) | |
tree | 6903c3ca6ed3a5243766319f98ca56adb3980c2b /libavformat/yop.c | |
parent | 95bf5877f4e5bb9e4b5af9635e296dae68b992b7 (diff) | |
download | ffmpeg-bc67df697b300e0fd792bf46c7726ca8478cb2ef.tar.gz |
yop: 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/yop.c')
-rw-r--r-- | libavformat/yop.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/yop.c b/libavformat/yop.c index f65e4f8b16..b0aa0bb64b 100644 --- a/libavformat/yop.c +++ b/libavformat/yop.c @@ -72,8 +72,7 @@ static int yop_read_header(AVFormatContext *s) audio_par = audio_stream->codecpar; audio_par->codec_type = AVMEDIA_TYPE_AUDIO; audio_par->codec_id = AV_CODEC_ID_ADPCM_IMA_APC; - audio_par->channels = 1; - audio_par->channel_layout = AV_CH_LAYOUT_MONO; + audio_par->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO; audio_par->sample_rate = 22050; // Video |