summaryrefslogtreecommitdiff
path: root/libavformat/mms.h
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2010-08-13 17:30:01 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2010-08-13 17:30:01 +0000
commit67197656d19fa9e084e47b5331c262a9c7842335 (patch)
tree11626b91effab046306a041f0584880416511386 /libavformat/mms.h
parentc46000c1ff570f30f2255dcb42950b464a219a3d (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.h')
-rw-r--r--libavformat/mms.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mms.h b/libavformat/mms.h
index 675d6b93ee..7ee0485204 100644
--- a/libavformat/mms.h
+++ b/libavformat/mms.h
@@ -29,7 +29,7 @@ typedef struct {
typedef struct {
URLContext *mms_hd; ///< TCP connection handle
- MMSStream streams[MAX_STREAMS];
+ MMSStream *streams;
/** Buffer for outgoing packets. */
/*@{*/
@@ -54,6 +54,7 @@ typedef struct {
/*@}*/
int stream_num; ///< stream numbers.
+ unsigned int nb_streams_allocated; ///< allocated size of streams
} MMSContext;
int ff_mms_asf_header_parser(MMSContext * mms);