Merge commit '93c1b04abfc0dd31211a18bf2c0041d69cd16919'

* commit '93c1b04abfc0dd31211a18bf2c0041d69cd16919':
  mms: Check memory allocation

Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-03-22 03:52:17 +01:00
commit c75681aba3

View File

@ -104,6 +104,8 @@ int ff_mms_asf_header_parser(MMSContext *mms)
mms->streams = av_fast_realloc(mms->streams,
&mms->nb_streams_allocated,
(mms->stream_num + 1) * sizeof(MMSStream));
if (!mms->streams)
return AVERROR(ENOMEM);
mms->streams[mms->stream_num].id = stream_id;
mms->stream_num++;
} else {