summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2019-11-20 10:25:35 +0100
committerDamiano Galassi <[email protected]>2019-11-20 10:25:35 +0100
commit820d2643071919db35a17bff257e0ce9295793d7 (patch)
tree764f26a63e221bd3463ef8653cd6c94c1610defd
parent90536198931b5d67f8b61ca7cf203f7487177341 (diff)
MacGui: fix HBSubtitlesTrack unarchiver when the track is an external ssa file.
-rw-r--r--macosx/HBSubtitlesTrack.m2
1 files changed, 1 insertions, 1 deletions
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);