[FFmpeg-cvslog] lavc/libopenh264enc: fix the if-else coding style

Linjie Fu git at videolan.org
Fri Apr 10 17:52:54 EEST 2020


ffmpeg | branch: master | Linjie Fu <linjie.fu at intel.com> | Mon Apr  6 19:14:45 2020 +0800| [917d28d5ff118cad5babd50f68fe9490e0c54d55] | committer: Anton Khirnov

lavc/libopenh264enc: fix the if-else coding style

Signed-off-by: Linjie Fu <linjie.fu at intel.com>
Signed-off-by: Anton Khirnov <anton at khirnov.net>

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

 libavcodec/libopenh264enc.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c
index ae6d17c6d2..dd5d4ee7b9 100644
--- a/libavcodec/libopenh264enc.c
+++ b/libavcodec/libopenh264enc.c
@@ -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;



More information about the ffmpeg-cvslog mailing list