feat(ffmpeg): logging callback handler

This commit is contained in:
Adrian Shum 2022-09-11 11:04:08 +08:00 committed by GitHub
parent f11d2b351c
commit 57541418b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 71 additions and 1 deletions

11
ffmpeg/logging.h Normal file
View file

@ -0,0 +1,11 @@
#include <stdarg.h>
#define LINE_SZ 1024
extern void goAVLoggingHandler(int level, char *str);
extern void av_log_set_callback(void (*callback)(void *, int, const char *, va_list));
extern void av_log_format_line(void *ptr, int level, const char *fmt, va_list vl, char *line, int line_size, int *print_prefix);
void goavLogCallback(void *class_ptr, int level, const char *fmt, va_list vl);
void goavLogSetup();