avcodec/libspeexdec: Fix use of uninitialized value
Regression since 97d9a32938
.
Fixes Coverity issue #1503072.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@ -43,7 +43,7 @@ static av_cold int libspeex_decode_init(AVCodecContext *avctx)
|
|||||||
LibSpeexContext *s = avctx->priv_data;
|
LibSpeexContext *s = avctx->priv_data;
|
||||||
const SpeexMode *mode;
|
const SpeexMode *mode;
|
||||||
SpeexHeader *header = NULL;
|
SpeexHeader *header = NULL;
|
||||||
int spx_mode, channels;
|
int spx_mode, channels = avctx->ch_layout.nb_channels;
|
||||||
|
|
||||||
if (avctx->extradata && avctx->extradata_size >= 80) {
|
if (avctx->extradata && avctx->extradata_size >= 80) {
|
||||||
header = speex_packet_to_header(avctx->extradata,
|
header = speex_packet_to_header(avctx->extradata,
|
||||||
|
Reference in New Issue
Block a user