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

Steve Lhomme git at videolan.org
Thu Sep 7 12:18:47 CEST 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Thu Aug 31 08:45:21 2017 +0200| [6fa5e61166b848f598a82e772ec72cf5ec5c8d28] | committer: Jean-Baptiste Kempf

avcodec: map our debug level to the ffmpeg debug level

otherwise we don't even get debug messages at all

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6fa5e61166b848f598a82e772ec72cf5ec5c8d28
---

 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 0b33023595..d5ccdbc32d 100644
--- a/modules/codec/avcodec/avcommon.h
+++ b/modules/codec/avcodec/avcommon.h
@@ -78,6 +78,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;
         }



More information about the vlc-commits mailing list