[vlc-devel] [PATCH] avcodec: map our debug level to the ffmpeg debug level

Steve Lhomme robux4 at videolabs.io
Thu Aug 31 08:45:21 CEST 2017


otherwise we don't even get debug messages at all
---
 modules/codec/avcodec/avcommon.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/codec/avcodec/avcommon.h b/modules/codec/avcodec/avcommon.h
index 5b8deb19aa..24e4e997e2 100644
--- a/modules/codec/avcodec/avcommon.h
+++ b/modules/codec/avcodec/avcommon.h
@@ -74,6 +74,9 @@ static inline void vlc_init_avutil(vlc_object_t *obj)
             break;
         case VLC_MSG_DBG:
             level = AV_LOG_VERBOSE;
+            break;
+        case VLC_MSG_DBG+1:
+            level = AV_LOG_DEBUG;
         default:
             break;
         }
-- 
2.12.1



More information about the vlc-devel mailing list