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:
parent
f6f1fc2db1
commit
66453b1fba
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user