mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-19 05:49:09 +02:00
avcodec/rka: fix channel value initialization
This commit is contained in:
parent
83a2007f40
commit
05b859af35
@ -149,7 +149,8 @@ static av_cold int rka_decode_init(AVCodecContext *avctx)
|
||||
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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user