Introduce two new logging functions av_hex_dump_log() and av_pkt_dump_log()

which use av_log() for logging instead of fprintf().

Originally committed as revision 8339 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Panagiotis Issaris
2007-03-12 14:17:26 +00:00
parent 318c5e0524
commit 750f0e1f8b
5 changed files with 84 additions and 30 deletions

View File

@@ -1878,7 +1878,7 @@ static int av_encode(AVFormatContext **output_files,
}
if (do_pkt_dump) {
av_pkt_dump(stdout, &pkt, do_hex_dump);
av_pkt_dump_log(NULL, AV_LOG_DEBUG, &pkt, do_hex_dump);
}
/* the following test is needed in case new streams appear
dynamically in stream : we ignore them */