Added fmt to log callback

This commit is contained in:
Quentin Renard
2022-03-24 15:35:37 +01:00
parent 12f9a2e067
commit fe4242eb59
6 changed files with 15 additions and 10 deletions

View File

@@ -42,7 +42,7 @@ type stream struct {
func main() {
// Handle ffmpeg logs
astiav.SetLogLevel(astiav.LogLevelDebug)
astiav.SetLogCallback(func(l astiav.LogLevel, msg, parent string) {
astiav.SetLogCallback(func(l astiav.LogLevel, fmt, msg, parent string) {
log.Printf("ffmpeg log: %s (level: %d)\n", strings.TrimSpace(msg), l)
})