commit | 05b859af35ef4effa1a70b363f81834d6c5abbc8 | [log] [tgz] |
---|---|---|
author | Paul B Mahol <[email protected]> | Wed Feb 15 13:11:16 2023 |
committer | Paul B Mahol <[email protected]> | Wed Feb 15 13:16:49 2023 |
tree | 091e9660842ac7482fcf4506e0efe7588b5e2ffd | |
parent | 83a2007f40fdf70e3eb49bd5be6a46c8d223b3df [diff] [blame] |
avcodec/rka: fix channel value initialization
diff --git a/libavcodec/rka.c b/libavcodec/rka.c index da4ca52..4c93cae 100644 --- a/libavcodec/rka.c +++ b/libavcodec/rka.c
@@ -149,7 +149,8 @@ return AVERROR_INVALIDDATA; } - s->channels = avctx->ch_layout.nb_channels; + av_channel_layout_uninit(&avctx->ch_layout); + s->channels = avctx->ch_layout.nb_channels = avctx->extradata[12]; if (s->channels < 1 || s->channels > 2) return AVERROR_INVALIDDATA;