diff options
author | Damiano Galassi <[email protected]> | 2019-09-13 12:52:20 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2019-09-13 12:52:20 +0200 |
commit | 79740fb9ba11c49469c52bce4ca3a4816843686f (patch) | |
tree | 441f13ff42b6fc5d3fe0ff943802222bc29f8d4a /macosx/HBVideo.m | |
parent | b2d9b7cae68cdccdcd4f33c11bdeda98fbf37e18 (diff) |
MacGui: fix a few warnings when building in Xcode 11.
Diffstat (limited to 'macosx/HBVideo.m')
-rw-r--r-- | macosx/HBVideo.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/macosx/HBVideo.m b/macosx/HBVideo.m index c062759e0..cb4cca3b9 100644 --- a/macosx/HBVideo.m +++ b/macosx/HBVideo.m @@ -499,7 +499,7 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification"; encodeInt(_encoder); - encodeInt(_qualityType); + encodeInteger(_qualityType); encodeInt(_avgBitrate); encodeDouble(_quality); @@ -507,7 +507,7 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification"; encodeDouble(_qualityMaxValue); encodeInt(_frameRate); - encodeInt(_frameRateMode); + encodeInteger(_frameRateMode); encodeBool(_twoPass); encodeBool(_turboTwoPass); @@ -528,7 +528,7 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification"; decodeInt(_encoder); - decodeInt(_qualityType); if (_qualityType < HBVideoQualityTypeAvgBitrate || _qualityType > HBVideoQualityTypeConstantQuality) { goto fail; } + decodeInteger(_qualityType); if (_qualityType < HBVideoQualityTypeAvgBitrate || _qualityType > HBVideoQualityTypeConstantQuality) { goto fail; } decodeInt(_avgBitrate); if (_avgBitrate < 0) { goto fail; } decodeDouble(_quality); @@ -536,7 +536,7 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification"; decodeDouble(_qualityMaxValue); decodeInt(_frameRate); if (_frameRate < 0) { goto fail; } - decodeInt(_frameRateMode); if (_frameRateMode < HBVideoFrameRateModeVFR_PFR || _frameRateMode > HBVideoFrameRateModeCFR) { goto fail; } + decodeInteger(_frameRateMode); if (_frameRateMode < HBVideoFrameRateModeVFR_PFR || _frameRateMode > HBVideoFrameRateModeCFR) { goto fail; } decodeBool(_twoPass); decodeBool(_turboTwoPass); |