]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/log.h
Add AV_LOG_PRINT_LEVEL flag to include log severity in default log formatting.
[ffmpeg] / libavutil / log.h
index d56d8436d2c083418971244642b7b96ea9f76ded..a6a07e0653a0c7fe22d456339e5e3242cc1ccff8 100644 (file)
@@ -321,6 +321,15 @@ void av_log_format_line(void *ptr, int level, const char *fmt, va_list vl,
  * call av_log(NULL, AV_LOG_QUIET, "%s", ""); at the end
  */
 #define AV_LOG_SKIP_REPEATED 1
+
+/**
+ * Include the log severity in messages originating from codecs.
+ *
+ * Results in messages such as:
+ * [rawvideo @ 0xDEADBEEF] [error] encode did not produce valid pts
+ */
+#define AV_LOG_PRINT_LEVEL 2
+
 void av_log_set_flags(int arg);
 int av_log_get_flags(void);