Browse Source

Merge commit '58c95448e42d34910b939363949ba1a92c06b0b0'

* commit '58c95448e42d34910b939363949ba1a92c06b0b0':
  smacker: pad the extradata allocation

Conflicts:
	libavformat/smacker.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.0
Michael Niedermayer 12 years ago
parent
commit
e99f324c14
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/smacker.c

+ 2
- 1
libavformat/smacker.c View File

@@ -210,7 +210,8 @@ static int smacker_read_header(AVFormatContext *s)


/* load trees to extradata, they will be unpacked by decoder */
st->codec->extradata = av_malloc(smk->treesize + 16 + FF_INPUT_BUFFER_PADDING_SIZE);
st->codec->extradata = av_mallocz(smk->treesize + 16 +
FF_INPUT_BUFFER_PADDING_SIZE);
st->codec->extradata_size = smk->treesize + 16;
if(!st->codec->extradata){
av_log(s, AV_LOG_ERROR, "Cannot allocate %i bytes of extradata\n", smk->treesize + 16);


Loading…
Cancel
Save