diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-03-31 18:30:42 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:37 -0300 |
commit | 736a45f8985e3a0f8163242d7af417fdcee30198 (patch) | |
tree | f8c9517276679ae3e6e16fa34da4f5947fcb0f54 /libavformat | |
parent | cd5b4d4ba7d5fea9cf7f3b8469a1c140c916e600 (diff) | |
download | ffmpeg-736a45f8985e3a0f8163242d7af417fdcee30198.tar.gz |
siff: 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/siff.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/siff.c b/libavformat/siff.c index a34de24ec8..99756574b4 100644 --- a/libavformat/siff.c +++ b/libavformat/siff.c @@ -80,8 +80,7 @@ static int create_audio_stream(AVFormatContext *s, SIFFContext *c) return AVERROR(ENOMEM); ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; ast->codecpar->codec_id = AV_CODEC_ID_PCM_U8; - ast->codecpar->channels = 1; - ast->codecpar->channel_layout = AV_CH_LAYOUT_MONO; + ast->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO; ast->codecpar->bits_per_coded_sample = 8; ast->codecpar->sample_rate = c->rate; avpriv_set_pts_info(ast, 16, 1, c->rate); |