avidec: zero extradata padding

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-04-19 22:52:34 +02:00
parent ee402df9a2
commit 455fcf29b8
1 changed files with 1 additions and 1 deletions

View File

@ -704,7 +704,7 @@ static int avi_read_header(AVFormatContext *s)
if(size<(1<<30)){ if(size<(1<<30)){
st->codec->extradata_size= size; 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) { if (!st->codec->extradata) {
st->codec->extradata_size= 0; st->codec->extradata_size= 0;
return AVERROR(ENOMEM); return AVERROR(ENOMEM);