aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avidec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-03-05 18:29:50 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-03-05 18:41:03 +0100
commit8a048fe6f8bf41de93c091a7a9b3132bedc1b41c (patch)
tree7a879633ae94347c69f93dd70fff05d28a801bf4 /libavformat/avidec.c
parent1cded1f8d7d25ff4340d670262cdeb3167a69ae8 (diff)
downloadffmpeg-8a048fe6f8bf41de93c091a7a9b3132bedc1b41c.tar.gz
avformat/avidec: initialize header array
Fixes use of uninitialized memory in case read fails Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r--libavformat/avidec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 54c87a2559..8a0938d5dc 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -136,7 +136,7 @@ static inline int get_duration(AVIStream *ast, int len)
static int get_riff(AVFormatContext *s, AVIOContext *pb)
{
AVIContext *avi = s->priv_data;
- char header[8];
+ char header[8] = {0};
int i;
/* check RIFF header */