Commit 917d28d5 authored by Linjie Fu's avatar Linjie Fu Committed by Anton Khirnov

lavc/libopenh264enc: fix the if-else coding style

Signed-off-by: 's avatarLinjie Fu <linjie.fu@intel.com>
Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
parent 932493f9
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment