diff options
author | Damiano Galassi <[email protected]> | 2020-08-25 13:05:21 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2020-08-25 13:05:21 +0200 |
commit | 5f2fbdbbcbf845511105191d2f2980a18e5cf2e6 (patch) | |
tree | a321d5d6778ee84b7dc5fe3966a66b01864dad81 /macosx/HBVideo.m | |
parent | 2f3824453679e60c7e4d34ea19dddc8467f57e50 (diff) |
MacGui: fix quality type validation.
Diffstat (limited to 'macosx/HBVideo.m')
-rw-r--r-- | macosx/HBVideo.m | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/macosx/HBVideo.m b/macosx/HBVideo.m index c792ba605..2138ac5d8 100644 --- a/macosx/HBVideo.m +++ b/macosx/HBVideo.m @@ -286,17 +286,9 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification"; - (void)validateQualityType { - if (self.qualityType != 0) + if (self.qualityType != 0 && !hb_video_quality_is_supported(self.encoder)) { - int direction; - float minValue, maxValue, granularity; - hb_video_quality_get_limits(self.encoder, - &minValue, &maxValue, &granularity, &direction); - - if (minValue == 0 && maxValue == 0) - { - self.qualityType = 0; - } + self.qualityType = 0; } if ((self.encoder & HB_VCODEC_FFMPEG_VT_H264) || |