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:
James Almer 2016-11-12 20:52:22 -03:00
parent f6f1fc2db1
commit 66453b1fba
1 changed files with 1 additions and 1 deletions

View File

@ -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;