Commit 455fcf29 authored by Michael Niedermayer's avatar Michael Niedermayer

avidec: zero extradata padding

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ee402df9
......@@ -704,7 +704,7 @@ static int avi_read_header(AVFormatContext *s)
if(size<(1<<30)){
st->codec->extradata_size= size;
st->codec->extradata= av_malloc(st->codec->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
st->codec->extradata= av_mallocz(st->codec->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
if (!st->codec->extradata) {
st->codec->extradata_size= 0;
return AVERROR(ENOMEM);
......
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