From 820d2643071919db35a17bff257e0ce9295793d7 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Wed, 20 Nov 2019 10:25:35 +0100 Subject: MacGui: fix HBSubtitlesTrack unarchiver when the track is an external ssa file. --- macosx/HBSubtitlesTrack.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macosx/HBSubtitlesTrack.m b/macosx/HBSubtitlesTrack.m index 457410a27..9e95bc544 100644 --- a/macosx/HBSubtitlesTrack.m +++ b/macosx/HBSubtitlesTrack.m @@ -372,7 +372,7 @@ static NSArray *_languagesArray = nil; self = [super init]; decodeInteger(_sourceTrackIdx); if (_sourceTrackIdx < 0) { goto fail; } - decodeInt(_type); if (_type < VOBSUB || _type > SRTSUB) { goto fail; } + decodeInt(_type); if (_type < VOBSUB || _type > IMPORTSSA) { goto fail; } decodeInt(_container); if (_container != HB_MUX_MP4 && _container != HB_MUX_MKV && _container != HB_MUX_WEBM) { goto fail; } decodeBool(_forcedOnly); -- cgit v1.2.3