diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2010-08-13 21:30:01 +0400 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2010-08-13 21:30:01 +0400 |
commit | 67197656d19fa9e084e47b5331c262a9c7842335 (patch) | |
tree | 11626b91effab046306a041f0584880416511386 /libavformat/mms.c | |
parent | c46000c1ff570f30f2255dcb42950b464a219a3d (diff) |
Remove use of MAX_STREAMS in MMSContext->streams[] array. Instead, dynamically
allocate the array.
Originally committed as revision 24794 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mms.c')
-rw-r--r-- | libavformat/mms.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/mms.c b/libavformat/mms.c index cbb4739aca..73f4e6b671 100644 --- a/libavformat/mms.c +++ b/libavformat/mms.c @@ -99,6 +99,9 @@ int ff_mms_asf_header_parser(MMSContext *mms) //Please see function send_stream_selection_request(). if (mms->stream_num < MAX_STREAMS && 46 + mms->stream_num * 6 < sizeof(mms->out_buffer)) { + mms->streams = av_fast_realloc(mms->streams, + &mms->nb_streams_allocated, + (mms->stream_num + 1) * sizeof(MMSStream)); mms->streams[mms->stream_num].id = stream_id; mms->stream_num++; } else { |