Commit 8a048fe6 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/avidec: initialize header array

Fixes use of uninitialized memory in case read fails
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1cded1f8
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment