Add a logger callback for FFmpeg log messages

This commit is contained in:
Julien BLACHE
2010-03-07 10:45:15 +01:00
parent 092eb59fe0
commit 119525e612
3 changed files with 27 additions and 0 deletions

View File

@@ -49,6 +49,7 @@
#include <getopt.h>
#include <event.h>
#include <libavutil/log.h>
#include <libavformat/avformat.h>
#include <gcrypt.h>
@@ -555,6 +556,7 @@ main(int argc, char **argv)
/* Initialize ffmpeg */
av_register_all();
av_log_set_callback(logger_ffmpeg);
/* Initialize libgcrypt */
gcry_control(GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);