[FFmpeg-cvslog] avidec: zero extradata padding
Michael Niedermayer
git at videolan.org
Fri Apr 20 00:30:49 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Apr 19 22:52:34 2012 +0200| [455fcf29b8482009d2ad13da56cd1122973dc858] | committer: Michael Niedermayer
avidec: zero extradata padding
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=455fcf29b8482009d2ad13da56cd1122973dc858
---
libavformat/avidec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 0300316..95b94d1 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -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);
More information about the ffmpeg-cvslog
mailing list