From patchwork Sat Jun 27 14:26:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhao Zhili X-Patchwork-Id: 20645 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 1D00444BCE9 for ; Sat, 27 Jun 2020 17:27:01 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E89CF68B641; Sat, 27 Jun 2020 17:27:00 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from qq.com (out203-205-251-80.mail.qq.com [203.205.251.80]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 402BB68B485 for ; Sat, 27 Jun 2020 17:26:52 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1593268010; bh=usG+PYb0TlISEMcXKSvKMsYfZT0P0FrDnv4nRtcm5Cg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=z0k8g4qYpGT7eTNCoVB61iI02HOKjeSOwqcwuzDInDCBaHl3BCvG7HR+hmYDdKo6D ITvLWvqYdBL9h4Ap2bZ32KeX9qmsq5w8Qv5kHoDTZ+kpAPrNWVfqlrPDvBjnok4CBV 2vzsJTDjEwJOF8ayxWf09+5UTJjeJ/s1XY91RL0M= Received: from localhost.localdomain ([27.46.106.230]) by newxmesmtplogicsvrszc6.qq.com (NewEsmtp) with SMTP id 6AF3ACA0; Sat, 27 Jun 2020 22:26:47 +0800 X-QQ-mid: xmsmtpt1593268008ter6d2c7k Messag-ID: X-QQ-XMAILINFO: NNbU8meQohwR1Hooaej1mklsae4V/mmmNYKoxYKYYKsFS4dfyjQ2VeZIeAfPaj rY9bu4ulx97uaJwLkC5O/8fbS+u3jtMzcYfgiGEwAAvpk9hwWhJFS8ECcbPSHbRRYGxslLJ8GVPO hoVD3Ol4zwrg8LBAUtv6QlK9Q9c0fuZxHL29smgRgVgGi1BH6nmb+2At/jUEHKb+aTq8TLO++UJr FEyUHfjDuiQM7OPWlHI9he4Rm0/5nkckhOPPns2X7zC5zxZqZz4Y4bvKYBH/RbEaUycJj3Bwutyd SHsXle3tePgp4hLWMoydP3Or1U4W6eF+uWyeTruOJgo78qvF4RstPtOUyatnSXwreZiTGRhA0bjj rvjgUNcobcJugb5jxRNhJ0z9M8EnqHo6zeUT1wZEmItZVqJcFFeX2e/o1q7cQF9uYfylU3qaXZOV OThTIpuxbMPY47a4EthrtBxmr/yiyg5nmRDZj5WQJuNhIK9X3jtHuCv7e14DPO47grzxmPtEBxbo fnYYiSob7ZpouuvZn6urRpNwS9xNQNu43e7WM/7z+Dm+2jwoZ/KpYfUyeVO6K1Cpq/tM9lgMgvA5 p2rMQl+lF13rfjFoCTQYrgkhGjSQc5t6MnlSj0kKXYbi34tQMUhHbOPzovIyxXWBiYy9m5XX0Zw8 +A25dMnZMkdaErNzhEWRVMnWtb0t8Hjh973P6GG6scJjDlsca2jKVpm21YNWV6wDWzJOrtEVSpLb e0 From: Zhao Zhili To: ffmpeg-devel@ffmpeg.org Date: Sat, 27 Jun 2020 22:26:44 +0800 X-OQ-MSGID: <20200627142645.158676-2-quinkblack@foxmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200627142645.158676-1-quinkblack@foxmail.com> References: <20200627142645.158676-1-quinkblack@foxmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 2/3] avformat/isom: update mov_mdhd_language_map X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Zhao Zhili Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Message-Id: <20200627142700.E89CF68B641@ffbox0-bg.mplayerhq.hu> This is a map from 'Macintosh Language Codes' to 'ISO639-2/T'. Some items in the map were ISO639-2/B, some were ISO639-1. --- libavformat/isom.c | 50 +++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/libavformat/isom.c b/libavformat/isom.c index 209bbac5d1..e6b9506f67 100644 --- a/libavformat/isom.c +++ b/libavformat/isom.c @@ -397,10 +397,10 @@ const AVCodecTag ff_codec_movdata_tags[] = { static const char mov_mdhd_language_map[][4] = { "eng", /* 0 English */ "fra", /* 1 French */ - "ger", /* 2 German */ + "deu", /* 2 German */ "ita", /* 3 Italian */ - "dut", /* 4 Dutch */ - "sve", /* 5 Swedish */ + "nld", /* 4 Dutch */ + "swe", /* 5 Swedish */ "spa", /* 6 Spanish */ "dan", /* 7 Danish */ "por", /* 8 Portuguese */ @@ -410,11 +410,11 @@ static const char mov_mdhd_language_map[][4] = { "ara", /* 12 Arabic */ "fin", /* 13 Finnish */ "gre", /* 14 Greek */ - "ice", /* 15 Icelandic */ + "isl", /* 15 Icelandic */ "mlt", /* 16 Maltese */ "tur", /* 17 Turkish */ - "hr ", /* 18 Croatian */ - "chi", /* 19 Traditional Chinese */ + "hrv", /* 18 Croatian */ + "zho", /* 19 Traditional Chinese */ "urd", /* 20 Urdu */ "hin", /* 21 Hindi */ "tha", /* 22 Thai */ @@ -425,20 +425,20 @@ static const char mov_mdhd_language_map[][4] = { "est", /* 27 Estonian */ "lav", /* 28 Latvian */ "", /* 29 Sami */ - "fo ", /* 30 Faroese */ - "", /* 31 Farsi */ + "fao", /* 30 Faroese */ + "fas", /* 31 Farsi */ "rus", /* 32 Russian */ - "chi", /* 33 Simplified Chinese */ - "", /* 34 Flemish */ - "iri", /* 35 Irish */ - "alb", /* 36 Albanian */ + "zho", /* 33 Simplified Chinese */ + "nld", /* 34 Flemish */ + "gle", /* 35 Irish */ + "sqi", /* 36 Albanian */ "ron", /* 37 Romanian */ "ces", /* 38 Czech */ "slk", /* 39 Slovak */ "slv", /* 40 Slovenian */ "yid", /* 41 Yiddish */ - "sr ", /* 42 Serbian */ - "mac", /* 43 Macedonian */ + "srp", /* 42 Serbian */ + "mkd", /* 43 Macedonian */ "bul", /* 44 Bulgarian */ "ukr", /* 45 Ukrainian */ "bel", /* 46 Belarusian */ @@ -446,33 +446,33 @@ static const char mov_mdhd_language_map[][4] = { "kaz", /* 48 Kazakh */ "aze", /* 49 Azerbaijani */ "aze", /* 50 AzerbaijanAr */ - "arm", /* 51 Armenian */ - "geo", /* 52 Georgian */ + "hye", /* 51 Armenian */ + "kat", /* 52 Georgian */ "mol", /* 53 Moldavian */ "kir", /* 54 Kirghiz */ "tgk", /* 55 Tajiki */ "tuk", /* 56 Turkmen */ "mon", /* 57 Mongolian */ - "", /* 58 MongolianCyr */ + "mon", /* 58 MongolianCyr */ "pus", /* 59 Pashto */ "kur", /* 60 Kurdish */ "kas", /* 61 Kashmiri */ "snd", /* 62 Sindhi */ - "tib", /* 63 Tibetan */ + "bod", /* 63 Tibetan */ "nep", /* 64 Nepali */ "san", /* 65 Sanskrit */ "mar", /* 66 Marathi */ "ben", /* 67 Bengali */ "asm", /* 68 Assamese */ "guj", /* 69 Gujarati */ - "pa ", /* 70 Punjabi */ + "pan", /* 70 Punjabi */ "ori", /* 71 Oriya */ "mal", /* 72 Malayalam */ "kan", /* 73 Kannada */ "tam", /* 74 Tamil */ "tel", /* 75 Telugu */ - "", /* 76 Sinhala */ - "bur", /* 77 Burmese */ + "sin", /* 76 Sinhala */ + "mya", /* 77 Burmese */ "khm", /* 78 Khmer */ "lao", /* 79 Lao */ "vie", /* 80 Vietnamese */ @@ -485,9 +485,9 @@ static const char mov_mdhd_language_map[][4] = { "orm", /* 87 Oromo */ "som", /* 88 Somali */ "swa", /* 89 Swahili */ - "", /* 90 Kinyarwanda */ + "kin", /* 90 Kinyarwanda */ "run", /* 91 Rundi */ - "", /* 92 Nyanja */ + "nya", /* 92 Nyanja */ "mlg", /* 93 Malagasy */ "epo", /* 94 Esperanto */ "", /* 95 */ @@ -523,8 +523,8 @@ static const char mov_mdhd_language_map[][4] = { "", /* 125 */ "", /* 126 */ "", /* 127 */ - "wel", /* 128 Welsh */ - "baq", /* 129 Basque */ + "cym", /* 128 Welsh */ + "eus", /* 129 Basque */ "cat", /* 130 Catalan */ "lat", /* 131 Latin */ "que", /* 132 Quechua */