From 79740fb9ba11c49469c52bce4ca3a4816843686f Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Fri, 13 Sep 2019 12:52:20 +0200 Subject: MacGui: fix a few warnings when building in Xcode 11. --- macosx/HBVideo.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'macosx/HBVideo.m') 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); -- cgit v1.2.3