From 10c787e5b4f19abd30272444d09ca6b7b7f6a84a Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Mon, 23 Sep 2019 12:23:12 +0200 Subject: [PATCH] MacGui: fix HBAudioTrackPreset validation when the encoder is set to flac. --- macosx/HBAudioTrackPreset.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macosx/HBAudioTrackPreset.m b/macosx/HBAudioTrackPreset.m index 94542de7e..2478c39fc 100644 --- a/macosx/HBAudioTrackPreset.m +++ b/macosx/HBAudioTrackPreset.m @@ -444,7 +444,7 @@ decodeInt(_fallbackEncoder); if (_fallbackEncoder < 0) { goto fail; } decodeInt(_mixdown); if (_mixdown < 0) { goto fail; } decodeInt(_sampleRate); if (_sampleRate < 0) { goto fail; } - decodeInt(_bitRate); if (_bitRate < 0) { goto fail; } + decodeInt(_bitRate); if (_bitRate < -1) { goto fail; } decodeDouble(_gain); decodeDouble(_drc); -- 2.40.0