X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavutil%2Flog.h;h=02a0e1ac8ce22e7beb1dc357f6a1bb598b78f48b;hb=625751c47ad2f7ab4b94a236d6cdf87bd3dad0d3;hp=b8683302a2d424ffdcf532cc4b16340b9d3c01c2;hpb=988f585fcb1cfb40fe4b706c32b31594b536bba0;p=ffmpeg diff --git a/libavutil/log.h b/libavutil/log.h index b8683302a2d..02a0e1ac8ce 100644 --- a/libavutil/log.h +++ b/libavutil/log.h @@ -147,6 +147,16 @@ void av_log_set_callback(void (*)(void*, int, const char*, va_list)); void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl); const char* av_default_item_name(void* ctx); +/** + * Format a line of log the same way as the default callback. + * @param line buffer to receive the formated line + * @param line_size size of the buffer + * @param print_prefix used to store whether the prefix must be printed; + * must point to a persistent integer initially set to 1 + */ +void av_log_format_line(void *ptr, int level, const char *fmt, va_list vl, + char *line, int line_size, int *print_prefix); + /** * av_dlog macros * Useful to print debug messages that shouldn't get compiled in normally.