Skip to content

Commit

Permalink
avidec: Replace av_realloc by av_realloc_f when relevant.
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information
Nicolas George authored and michaelni committed Sep 28, 2011
1 parent 0cc44fa commit 71e23d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavformat/avidec.c
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,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);
}
Expand Down

0 comments on commit 71e23d3

Please sign in to comment.