You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-09-16 08:36:51 +02:00
avcodec/alsdec: Clear MPEG4AudioConfig so that no use of uninitialized memory is possible
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -282,7 +282,7 @@ static av_cold int read_specific_config(ALSDecContext *ctx)
|
|||||||
GetBitContext gb;
|
GetBitContext gb;
|
||||||
uint64_t ht_size;
|
uint64_t ht_size;
|
||||||
int i, config_offset;
|
int i, config_offset;
|
||||||
MPEG4AudioConfig m4ac;
|
MPEG4AudioConfig m4ac = {0};
|
||||||
ALSSpecificConfig *sconf = &ctx->sconf;
|
ALSSpecificConfig *sconf = &ctx->sconf;
|
||||||
AVCodecContext *avctx = ctx->avctx;
|
AVCodecContext *avctx = ctx->avctx;
|
||||||
uint32_t als_id, header_size, trailer_size;
|
uint32_t als_id, header_size, trailer_size;
|
||||||
|
Reference in New Issue
Block a user