1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

lavc/libopenh264enc: fix the if-else coding style

Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Linjie Fu
2020-04-06 19:14:45 +08:00
committed by Anton Khirnov
parent 932493f9c2
commit 917d28d5ff

View 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;