diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-03-31 17:52:13 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:35 -0300 |
commit | a1f1f56ef072e84f1708adffe5185edb58ac2a89 (patch) | |
tree | 7b7e2da16d10f1688296f10f18372964f24ff5aa /libavformat/nsvdec.c | |
parent | 86eef55878ffab43606613ffc789129c9478ea3e (diff) | |
download | ffmpeg-a1f1f56ef072e84f1708adffe5185edb58ac2a89.tar.gz |
nsvdec: 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/nsvdec.c')
-rw-r--r-- | libavformat/nsvdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/nsvdec.c b/libavformat/nsvdec.c index 27471125ff..852e6194b0 100644 --- a/libavformat/nsvdec.c +++ b/libavformat/nsvdec.c @@ -618,7 +618,7 @@ null_chunk_retry: st[NSV_ST_AUDIO]->codecpar->codec_id = AV_CODEC_ID_PCM_U8; samplerate /= 4;/* UGH ??? XXX */ channels = 1; - st[NSV_ST_AUDIO]->codecpar->channels = channels; + st[NSV_ST_AUDIO]->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO; st[NSV_ST_AUDIO]->codecpar->sample_rate = samplerate; av_log(s, AV_LOG_TRACE, "NSV RAWAUDIO: bps %d, nchan %d, srate %d\n", bps, channels, samplerate); } |