You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/rka: fix channel value initialization
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user