From a009adcb64496a6ee9c4b0ecc5fbf2346f2247fa Mon Sep 17 00:00:00 2001
From: Tristan Matthews <tristan.matthews@savoirfairelinux.com>
Date: Tue, 22 Apr 2014 17:19:28 -0400
Subject: [PATCH] video: increase libav/ffmpeg verbosity in debug mode

Refs #45881

Change-Id: If3eeb113e5bc2bcedaa146e8aae83d3ab16fb3f8
---
 daemon/src/video/libav_utils.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/daemon/src/video/libav_utils.cpp b/daemon/src/video/libav_utils.cpp
index 3a924afd64..512199da76 100644
--- a/daemon/src/video/libav_utils.cpp
+++ b/daemon/src/video/libav_utils.cpp
@@ -118,6 +118,9 @@ void init_once()
 
     av_lockmgr_register(avcodecManageMutex);
 
+    if (Logger::getDebugMode())
+        av_log_set_level(AV_LOG_VERBOSE);
+
     /* list of codecs tested and confirmed to work */
     encoders_["H264"]        = "libx264";
     encoders_["H263-2000"]   = "h263p";
-- 
GitLab