Mercurial > libavformat.hg
diff mpegts.c @ 1908:174083eafc6c libavformat
Introduce two new logging functions av_hex_dump_log() and av_pkt_dump_log()
which use av_log() for logging instead of fprintf().
| author | takis |
|---|---|
| date | Mon, 12 Mar 2007 14:17:26 +0000 |
| parents | eb16c64144ee |
| children | a3e79d6e4e3c |
line wrap: on
line diff
--- a/mpegts.c Mon Mar 12 12:36:41 2007 +0000 +++ b/mpegts.c Mon Mar 12 14:17:26 2007 +0000 @@ -401,7 +401,7 @@ #ifdef DEBUG_SI av_log(ts->stream, AV_LOG_DEBUG, "PMT: len %i\n", section_len); - av_hex_dump(stdout, (uint8_t *)section, section_len); + av_hex_dump_log(ts->stream, AV_LOG_DEBUG, (uint8_t *)section, section_len); #endif p_end = section + section_len - 4; p = section; @@ -545,7 +545,7 @@ #ifdef DEBUG_SI av_log(ts->stream, AV_LOG_DEBUG, "PAT:\n"); - av_hex_dump(stdout, (uint8_t *)section, section_len); + av_hex_dump_log(ts->stream, AV_LOG_DEBUG, (uint8_t *)section, section_len); #endif p_end = section + section_len - 4; p = section; @@ -594,7 +594,7 @@ #ifdef DEBUG_SI av_log(ts->stream, AV_LOG_DEBUG, "PAT:\n"); - av_hex_dump(stdout, (uint8_t *)section, section_len); + av_hex_dump_log(ts->stream, AV_LOG_DEBUG, (uint8_t *)section, section_len); #endif p_end = section + section_len - 4; p = section; @@ -655,7 +655,7 @@ #ifdef DEBUG_SI av_log(ts->stream, AV_LOG_DEBUG, "SDT:\n"); - av_hex_dump(stdout, (uint8_t *)section, section_len); + av_hex_dump_log(ts->stream, AV_LOG_DEBUG, (uint8_t *)section, section_len); #endif p_end = section + section_len - 4; @@ -806,7 +806,7 @@ /* we got all the PES or section header. We can now decide */ #if 0 - av_hex_dump(pes->header, pes->data_index); + av_hex_dump_log(pes->stream, AV_LOG_DEBUG, pes->header, pes->data_index); #endif if (pes->header[0] == 0x00 && pes->header[1] == 0x00 && pes->header[2] == 0x01) {
