Revision 0f02a7e2 libavformat/mms.c

View differences:

libavformat/mms.c
24 24
#include "asf.h"
25 25
#include "libavutil/intreadwrite.h"
26 26

  
27
#if FF_API_MAX_STREAMS
28
#define MMS_MAX_STREAMS MAX_STREAMS
29
#else
30
#define MMS_MAX_STREAMS 256    /**< arbitrary sanity check value */
31
#endif
32

  
27 33
int ff_mms_read_header(MMSContext *mms, uint8_t *buf, const int size)
28 34
{
29 35
    char *pos;
......
97 103
            //The second condition is for checking CS_PKT_STREAM_ID_REQUEST packet size,
98 104
            //we can calcuate the packet size by stream_num.
99 105
            //Please see function send_stream_selection_request().
100
            if (mms->stream_num < MAX_STREAMS &&
106
            if (mms->stream_num < MMS_MAX_STREAMS &&
101 107
                    46 + mms->stream_num * 6 < sizeof(mms->out_buffer)) {
102 108
                mms->streams = av_fast_realloc(mms->streams,
103 109
                                   &mms->nb_streams_allocated,

Also available in: Unified diff