mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 05:00:37 +00: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:
parent
932493f9c2
commit
917d28d5ff
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user