]> granicus.if.org Git - handbrake/commitdiff
MacGui: fix HBAudioTrackPreset validation when the encoder is set to flac.
authorDamiano Galassi <damiog@gmail.com>
Mon, 23 Sep 2019 10:23:12 +0000 (12:23 +0200)
committerDamiano Galassi <damiog@gmail.com>
Mon, 23 Sep 2019 10:23:12 +0000 (12:23 +0200)
macosx/HBAudioTrackPreset.m

index 94542de7edc2b1cbfe9eb38a263a7bb1d68fb6bc..2478c39fc5b9a2dfc786c47e11cce67c6ef9be3f 100644 (file)
     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);