Revision 56023951 libavformat/mmst.c

View differences:

libavformat/mmst.c
258 258
                    // read the rest of the packet.
259 259
                    if (length_remaining < 0
260 260
                        || length_remaining > sizeof(mms->in_buffer) - 12) {
261
                        dprintf("Incoming message len %d exceeds buffer len %d\n",
261
                        dprintf(NULL, "Incoming message len %d exceeds buffer len %d\n",
262 262
                            length_remaining, sizeof(mms->in_buffer) - 12);
263 263
                        return -1;
264 264
                    }
......
291 291

  
292 292
                if (length_remaining < 0
293 293
                        || length_remaining > sizeof(mms->in_buffer) - 8) {
294
                    dprintf("Incoming data len %d exceeds buffer len %d\n",
294
                    dprintf(NULL, "Incoming data len %d exceeds buffer len %d\n",
295 295
                            length_remaining, sizeof(mms->in_buffer));
296 296
                    return -1;
297 297
                }
......
431 431
    while(end - p >= sizeof(ff_asf_guid) + 8) {
432 432
        uint64_t chunksize = AV_RL64(p + sizeof(ff_asf_guid));
433 433
        if (!chunksize || chunksize > end - p) {
434
            dprintf("chunksize is exceptional value:%d!\n", chunksize);
434
            dprintf(NULL, "chunksize is exceptional value:%d!\n", chunksize);
435 435
            return -1;
436 436
        }
437 437
        if (!memcmp(p, ff_asf_file_header, sizeof(ff_asf_guid))) {
......
455 455
                mms->streams[mms->stream_num].id = stream_id;
456 456
                mms->stream_num++;
457 457
            } else {
458
                dprintf("Too many streams.\n");
458
                dprintf(NULL, "Too many streams.\n");
459 459
                return -1;
460 460
            }
461 461
        }

Also available in: Unified diff