From: Jun Zhao <[email protected]> avpriv_mpeg4audio_get_config will use MPEG4AudioConfig.chan_config to get the MPEG4AudioConfig.channels, but if we use a uninitialized variable, we will get an indeterminate channels, add an explicit initialization for this case.
Signed-off-by: Jun Zhao <[email protected]> --- libavformat/latmenc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavformat/latmenc.c b/libavformat/latmenc.c index 8eb219f..e227e13 100644 --- a/libavformat/latmenc.c +++ b/libavformat/latmenc.c @@ -55,7 +55,7 @@ static const AVClass latm_muxer_class = { static int latm_decode_extradata(LATMContext *ctx, uint8_t *buf, int size) { - MPEG4AudioConfig m4ac; + MPEG4AudioConfig m4ac = {0}; if (size > MAX_EXTRADATA_SIZE) { av_log(ctx, AV_LOG_ERROR, "Extradata is larger than currently supported.\n"); -- 1.7.1 _______________________________________________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
