You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/mov: zero initialize codec_name in mov_parse_stsd_video()
Fixes valgrind warning about "Conditional jump or move depends on uninitialised value(s)" Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -1832,7 +1832,7 @@ static int mov_codec_id(AVStream *st, uint32_t format)
|
||||
static void mov_parse_stsd_video(MOVContext *c, AVIOContext *pb,
|
||||
AVStream *st, MOVStreamContext *sc)
|
||||
{
|
||||
uint8_t codec_name[32];
|
||||
uint8_t codec_name[32] = { 0 };
|
||||
int64_t stsd_start;
|
||||
unsigned int len;
|
||||
|
||||
|
Reference in New Issue
Block a user