Mercurial > libavformat.hg
changeset 6134:6c41d8dce99e libavformat
Fix missing logging context in a series of dprintf()s. Partially based on
patch by Zhentan Feng <spyfeng gmail com>.
author | rbultje |
---|---|
date | Tue, 15 Jun 2010 14:24:19 +0000 |
parents | 4040ce73a1ed |
children | 9df581584d50 |
files | mmst.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mmst.c Tue Jun 15 13:26:52 2010 +0000 +++ b/mmst.c Tue Jun 15 14:24:19 2010 +0000 @@ -258,7 +258,7 @@ // read the rest of the packet. if (length_remaining < 0 || length_remaining > sizeof(mms->in_buffer) - 12) { - dprintf("Incoming message len %d exceeds buffer len %d\n", + dprintf(NULL, "Incoming message len %d exceeds buffer len %d\n", length_remaining, sizeof(mms->in_buffer) - 12); return -1; } @@ -291,7 +291,7 @@ if (length_remaining < 0 || length_remaining > sizeof(mms->in_buffer) - 8) { - dprintf("Incoming data len %d exceeds buffer len %d\n", + dprintf(NULL, "Incoming data len %d exceeds buffer len %d\n", length_remaining, sizeof(mms->in_buffer)); return -1; } @@ -431,7 +431,7 @@ while(end - p >= sizeof(ff_asf_guid) + 8) { uint64_t chunksize = AV_RL64(p + sizeof(ff_asf_guid)); if (!chunksize || chunksize > end - p) { - dprintf("chunksize is exceptional value:%d!\n", chunksize); + dprintf(NULL, "chunksize is exceptional value:%d!\n", chunksize); return -1; } if (!memcmp(p, ff_asf_file_header, sizeof(ff_asf_guid))) { @@ -455,7 +455,7 @@ mms->streams[mms->stream_num].id = stream_id; mms->stream_num++; } else { - dprintf("Too many streams.\n"); + dprintf(NULL, "Too many streams.\n"); return -1; } }