aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2011-09-28 17:16:11 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-01 20:49:48 +0200
commit1537f86a9347ec7c17cb4be0d6657c583d316d40 (patch)
tree8f88316a614518c7f731123ffb0bfb0c2c047962
parent2a934e87b18030ac0b94d1761048a5d5aa9d5ed9 (diff)
downloadffmpeg-1537f86a9347ec7c17cb4be0d6657c583d316d40.tar.gz
avidec: Replace av_realloc by av_realloc_f when relevant.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 71e23d39a396f45bbdf258735b02a4bd5e25fd49)
-rw-r--r--libavformat/avidec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 6fedaf7f8e..7394bbc3a8 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -639,7 +639,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
if(st->codec->codec_tag==0 && st->codec->height > 0 && st->codec->extradata_size < 1U<<30){
st->codec->extradata_size+= 9;
- st->codec->extradata= av_realloc(st->codec->extradata, st->codec->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
+ st->codec->extradata= av_realloc_f(st->codec->extradata, 1, st->codec->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
if(st->codec->extradata)
memcpy(st->codec->extradata + st->codec->extradata_size - 9, "BottomUp", 9);
}