[vlc-devel] [PATCH 3/4] avcommon: remove unreachable switch case

Zhao Zhili quinkblack at foxmail.com
Thu Oct 1 18:37:38 CEST 2020


VLC_MSG_INFO is zero, (verbose + VLC_MSG_ERR) is greater or equal to 1.
---
 modules/codec/avcodec/avcommon.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/modules/codec/avcodec/avcommon.h b/modules/codec/avcodec/avcommon.h
index d9f46d577c..edfb8b979b 100644
--- a/modules/codec/avcodec/avcommon.h
+++ b/modules/codec/avcodec/avcommon.h
@@ -86,9 +86,6 @@ static inline void vlc_init_avutil(vlc_object_t *obj)
         case VLC_MSG_WARN:
             level = AV_LOG_WARNING;
             break;
-        case VLC_MSG_INFO:
-            level = AV_LOG_INFO;
-            break;
         case VLC_MSG_DBG:
             level = AV_LOG_VERBOSE;
             break;
-- 
2.25.1



More information about the vlc-devel mailing list