Mercurial > libavformat.hg
comparison mms.h @ 6376:91076395b8d3 libavformat
Remove use of MAX_STREAMS in MMSContext->streams[] array. Instead, dynamically
allocate the array.
author | rbultje |
---|---|
date | Fri, 13 Aug 2010 17:30:01 +0000 |
parents | 75e7dad45e44 |
children |
comparison
equal
deleted
inserted
replaced
6375:256e51c4f44b | 6376:91076395b8d3 |
---|---|
27 int id; | 27 int id; |
28 }MMSStream; | 28 }MMSStream; |
29 | 29 |
30 typedef struct { | 30 typedef struct { |
31 URLContext *mms_hd; ///< TCP connection handle | 31 URLContext *mms_hd; ///< TCP connection handle |
32 MMSStream streams[MAX_STREAMS]; | 32 MMSStream *streams; |
33 | 33 |
34 /** Buffer for outgoing packets. */ | 34 /** Buffer for outgoing packets. */ |
35 /*@{*/ | 35 /*@{*/ |
36 uint8_t *write_out_ptr; ///< Pointer for writting the buffer. | 36 uint8_t *write_out_ptr; ///< Pointer for writting the buffer. |
37 uint8_t out_buffer[512]; ///< Buffer for outgoing packet. | 37 uint8_t out_buffer[512]; ///< Buffer for outgoing packet. |
52 int asf_packet_len; | 52 int asf_packet_len; |
53 int asf_header_read_size; | 53 int asf_header_read_size; |
54 /*@}*/ | 54 /*@}*/ |
55 | 55 |
56 int stream_num; ///< stream numbers. | 56 int stream_num; ///< stream numbers. |
57 unsigned int nb_streams_allocated; ///< allocated size of streams | |
57 } MMSContext; | 58 } MMSContext; |
58 | 59 |
59 int ff_mms_asf_header_parser(MMSContext * mms); | 60 int ff_mms_asf_header_parser(MMSContext * mms); |
60 int ff_mms_read_data(MMSContext *mms, uint8_t *buf, const int size); | 61 int ff_mms_read_data(MMSContext *mms, uint8_t *buf, const int size); |
61 int ff_mms_read_header(MMSContext * mms, uint8_t * buf, const int size); | 62 int ff_mms_read_header(MMSContext * mms, uint8_t * buf, const int size); |