avformat/avidec: initialize header array
Fixes use of uninitialized memory in case read fails Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
1cded1f8d7
commit
8a048fe6f8
@ -136,7 +136,7 @@ static inline int get_duration(AVIStream *ast, int len)
|
|||||||
static int get_riff(AVFormatContext *s, AVIOContext *pb)
|
static int get_riff(AVFormatContext *s, AVIOContext *pb)
|
||||||
{
|
{
|
||||||
AVIContext *avi = s->priv_data;
|
AVIContext *avi = s->priv_data;
|
||||||
char header[8];
|
char header[8] = {0};
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
/* check RIFF header */
|
/* check RIFF header */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user