[FFmpeg-cvslog] avcodec/libopenh264enc: Fix formating to match FFmpegs style

Michael Niedermayer git at videolan.org
Thu Sep 10 13:23:25 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Sep 10 13:02:40 2015 +0200| [fb000b0f0f325b428bc65f8908df60dbd07b7cff] | committer: Michael Niedermayer

avcodec/libopenh264enc: Fix formating to match FFmpegs style

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fb000b0f0f325b428bc65f8908df60dbd07b7cff
---

 libavcodec/libopenh264enc.c |   22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c
index feecdea..e14416b 100644
--- a/libavcodec/libopenh264enc.c
+++ b/libavcodec/libopenh264enc.c
@@ -67,15 +67,15 @@ static int ffmpeg_to_libopenh264_log_level  (
     )
 {
     int equiv_libopenh264_log_level;
-    if  ( ffmpeg_log_level > AV_LOG_DEBUG )
+    if      (ffmpeg_log_level > AV_LOG_DEBUG)
         equiv_libopenh264_log_level = WELS_LOG_DETAIL;   // > AV_LOG_DEBUG; this is EXTREMELY detailed
-    else if  ( ffmpeg_log_level >= AV_LOG_DEBUG )
+    else if (ffmpeg_log_level >= AV_LOG_DEBUG)
         equiv_libopenh264_log_level = WELS_LOG_DEBUG;    // AV_LOG_DEBUG
-    else if  ( ffmpeg_log_level >= AV_LOG_INFO )
+    else if (ffmpeg_log_level >= AV_LOG_INFO)
         equiv_libopenh264_log_level = WELS_LOG_INFO;     // AV_LOG_INFO, AV_LOG_VERBOSE
-    else if  ( ffmpeg_log_level >= AV_LOG_WARNING )
+    else if (ffmpeg_log_level >= AV_LOG_WARNING)
         equiv_libopenh264_log_level = WELS_LOG_WARNING;  // AV_LOG_WARNING
-    else if  ( ffmpeg_log_level >= AV_LOG_ERROR )
+    else if (ffmpeg_log_level >= AV_LOG_ERROR)
         equiv_libopenh264_log_level = WELS_LOG_ERROR;    // AV_LOG_ERROR
     else
         equiv_libopenh264_log_level = WELS_LOG_QUIET;    // AV_LOG_QUIET, AV_LOG_PANIC, AV_LOG_FATAL
@@ -88,15 +88,15 @@ static int libopenh264_to_ffmpeg_log_level  (
     )
 {
     int equiv_ffmpeg_log_level;
-    if  ( libopenh264_log_level >= WELS_LOG_DETAIL )
+    if      (libopenh264_log_level >= WELS_LOG_DETAIL)
         equiv_ffmpeg_log_level = AV_LOG_DEBUG + 1;           // WELS_LOG_DETAIL
-    else if  ( libopenh264_log_level >= WELS_LOG_DEBUG )
+    else if (libopenh264_log_level >= WELS_LOG_DEBUG)
         equiv_ffmpeg_log_level = AV_LOG_DEBUG;               // WELS_LOG_DEBUG
-    else if  ( libopenh264_log_level >= WELS_LOG_INFO )
+    else if (libopenh264_log_level >= WELS_LOG_INFO)
         equiv_ffmpeg_log_level = AV_LOG_INFO;                // WELS_LOG_INFO
-    else if  ( libopenh264_log_level >= WELS_LOG_WARNING )
+    else if (libopenh264_log_level >= WELS_LOG_WARNING)
         equiv_ffmpeg_log_level = AV_LOG_WARNING;             // WELS_LOG_WARNING
-    else if  ( libopenh264_log_level >= WELS_LOG_ERROR )
+    else if (libopenh264_log_level >= WELS_LOG_ERROR)
         equiv_ffmpeg_log_level = AV_LOG_ERROR;               // WELS_LOG_ERROR
     else
         equiv_ffmpeg_log_level = AV_LOG_QUIET;               // WELS_LOG_QUIET
@@ -121,7 +121,7 @@ static void libopenh264_trace_callback  (
     // the message (and this function will not be called) if the requested libopenh264
     // log level "level" is greater than the current libopenh264 log level.
     int equiv_ffmpeg_log_level = libopenh264_to_ffmpeg_log_level(level);
-    if  ( equiv_ffmpeg_log_level <= av_log_get_level() )
+    if (equiv_ffmpeg_log_level <= av_log_get_level())
         av_log(ctx, equiv_ffmpeg_log_level, "%s\n", msg);
 }
 



More information about the ffmpeg-cvslog mailing list