summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2016-11-12 20:52:22 -0300
committerJames Almer <jamrial@gmail.com>2016-11-12 20:52:22 -0300
commit66453b1fba6c68f2f7f5117355d34b5f40910327 (patch)
tree62c82362c033111e58fd1e317e576e89c0fcf3e0 /libavformat
parentf6f1fc2db1b5fcd73e32a061e49fe9cd3f18b1d2 (diff)
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>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 9ec7d030d3..17d63d66d0 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -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;