Add extended language tag atom ('mdia.elng') support to select correct .traineddata file for Trad. and Simp. Chinese (to fix Subler Issue #12)

This commit is contained in:
Ching-Lan HUANG committed 2015-03-22 00:01:01 -07:00
1 parent d427d6f214
commit 446f2e828d
5 files changed
+31 -4

No files matched your search

+1 -1
View File
@@ -380,7 +380,7 @@ void FFInitFFmpeg() {
srcMagicCookie = [[track.muxer_helper->importer magicCookieForTrack:track] retain];
ocr = [[MP42OCRWrapper alloc] initWithLanguage:[track language]];
ocr = [[MP42OCRWrapper alloc] initWithLanguage:[track language] extendedLanguageTag:[track extendedLanguageTag]];
_done = dispatch_semaphore_create(0);