Commit 78dea33f authored by takis's avatar takis

Check whether the memory allocation for extradata succeeded. Fixes issue 472.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13603 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1fa61af8
......@@ -235,6 +235,8 @@ ff_rm_read_mdpr_codecdata (AVFormatContext *s, AVStream *st)
return -1;
}
st->codec->extradata= av_mallocz(st->codec->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
if (!st->codec->extradata)
return AVERROR(ENOMEM);
get_buffer(pb, st->codec->extradata, st->codec->extradata_size);
// av_log(NULL, AV_LOG_DEBUG, "fps= %d fps2= %d\n", fps, fps2);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment