Revision c46000c1

View differences:

libavformat/mms.c
68 68

  
69 69
    p += sizeof(ff_asf_guid) + 14;
70 70
    while(end - p >= sizeof(ff_asf_guid) + 8) {
71
        uint64_t chunksize = AV_RL64(p + sizeof(ff_asf_guid));
71
        uint64_t chunksize;
72
        if (!memcmp(p, ff_asf_data_header, sizeof(ff_asf_guid))) {
73
            chunksize = 50; // see Reference [2] section 5.1
74
        } else {
75
            chunksize = AV_RL64(p + sizeof(ff_asf_guid));
76
        }
72 77
        if (!chunksize || chunksize > end - p) {
73 78
            av_log(NULL, AV_LOG_ERROR,
74 79
                   "Corrupt stream (header chunksize %"PRId64" is invalid)\n",

Also available in: Unified diff