]> git.sesse.net Git - ffmpeg/commitdiff
lavc/libopenh264enc: fix the if-else coding style
authorLinjie Fu <linjie.fu@intel.com>
Mon, 6 Apr 2020 11:14:45 +0000 (19:14 +0800)
committerAnton Khirnov <anton@khirnov.net>
Fri, 10 Apr 2020 11:50:47 +0000 (13:50 +0200)
Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/libopenh264enc.c

index ae6d17c6d2c19e904423e054fc8f0011a4c0e38e..dd5d4ee7b9a7d67de515cdf2fc7422b1773b2ee1 100644 (file)
@@ -199,8 +199,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
@@ -227,7 +226,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;