Commit c75681ab authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '93c1b04a'

* commit '93c1b04a':
  mms: Check memory allocation
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents a821617b 93c1b04a
......@@ -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 {
......
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