[FFmpeg-devel] [PATCH 02/10] lavc/libopenh264enc: fix the if-else coding style

Linjie Fu linjie.fu at intel.com
Fri Apr 3 18:12:55 EEST 2020


Signed-off-by: Linjie Fu <linjie.fu at intel.com>
---
 libavcodec/libopenh264enc.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c
index 364926f..c7ae5b1 100644
--- a/libavcodec/libopenh264enc.c
+++ b/libavcodec/libopenh264enc.c
@@ -202,8 +202,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
             param.sSpatialLayers[0].eAspectRatio = asp_idc[i];
         }
         param.sSpatialLayers[0].bAspectRatioPresent = true;
-    }
-    else {
+    } else {
         param.sSpatialLayers[0].bAspectRatioPresent = false;
     }
 #endif
@@ -230,7 +229,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
 #endif
 
     if (s->slice_mode == SM_SIZELIMITED_SLICE) {
-        if (s->max_nal_size){
+        if (s->max_nal_size) {
             param.uiMaxNalSize = s->max_nal_size;
 #if OPENH264_VER_AT_LEAST(1, 6)
             param.sSpatialLayers[0].sSliceArgument.uiSliceSizeConstraint = s->max_nal_size;
-- 
2.7.4



More information about the ffmpeg-devel mailing list