summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2019-11-20 10:25:35 +0100
committersr55 <[email protected]>2019-12-09 17:36:24 +0000
commit6e21e78205d26bf05df70c0b51031b6cd926bd7d (patch)
treead91e3b21d2f06284d10306e724c01eeb5c103df
parent726aa222ed0db095edcbcb558e629cc409650f5e (diff)
MacGui: fix HBSubtitlesTrack unarchiver when the track is an external ssa file.
(cherry picked from commit 820d2643071919db35a17bff257e0ce9295793d7)
-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);