diff mbox series

[FFmpeg-devel] libavformat/isom: Add more language mappings

Message ID 20220427110002.75021-1-4rusxg@gmail.com
State Accepted
Commit 58880a8ea8d1aa0497e88f0da4e88455db9ba723
Headers show
Series [FFmpeg-devel] libavformat/isom: Add more language mappings | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_armv7_RPi4 success Make finished
andriy/make_fate_armv7_RPi4 success Make fate finished

Commit Message

Ivan Baykalov April 27, 2022, 11 a.m. UTC
mov_mdhd_language_map table doesn't contain ISO 639 codes for some of
the languages. I added a few which have no contradictory mappings

Fixes ticket #9743
---
 libavformat/isom.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Comments

Ivan Baykalov June 7, 2022, 4:59 a.m. UTC | #1
Ping

ср, 27 апр. 2022 г. в 18:00, Ivan Baykalov <4rusxg@gmail.com>:

> mov_mdhd_language_map table doesn't contain ISO 639 codes for some of
> the languages. I added a few which have no contradictory mappings
>
> Fixes ticket #9743
> ---
>  libavformat/isom.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/libavformat/isom.c b/libavformat/isom.c
> index e6569dfb68..2bc240ed5c 100644
> --- a/libavformat/isom.c
> +++ b/libavformat/isom.c
> @@ -119,9 +119,9 @@ static const char mov_mdhd_language_map[][4] = {
>      "hun",    /*  26 Hungarian */
>      "est",    /*  27 Estonian */
>      "lav",    /*  28 Latvian */
> -       "",    /*  29 Sami */
> +    "smi",    /*  29 Sami */
>      "fo ",    /*  30 Faroese */
> -       "",    /*  31 Farsi */
> +    "per",    /*  31 Farsi */
>      "rus",    /*  32 Russian */
>      "chi",    /*  33 Simplified Chinese */
>         "",    /*  34 Flemish */
> @@ -166,7 +166,7 @@ static const char mov_mdhd_language_map[][4] = {
>      "kan",    /*  73 Kannada */
>      "tam",    /*  74 Tamil */
>      "tel",    /*  75 Telugu */
> -       "",    /*  76 Sinhala */
> +    "sin",    /*  76 Sinhala */
>      "bur",    /*  77 Burmese */
>      "khm",    /*  78 Khmer */
>      "lao",    /*  79 Lao */
> @@ -180,9 +180,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  */
> --
> 2.35.1
>
>
Anton Khirnov June 7, 2022, 9:12 a.m. UTC | #2
Will push soonish if noone objects.
diff mbox series

Patch

diff --git a/libavformat/isom.c b/libavformat/isom.c
index e6569dfb68..2bc240ed5c 100644
--- a/libavformat/isom.c
+++ b/libavformat/isom.c
@@ -119,9 +119,9 @@  static const char mov_mdhd_language_map[][4] = {
     "hun",    /*  26 Hungarian */
     "est",    /*  27 Estonian */
     "lav",    /*  28 Latvian */
-       "",    /*  29 Sami */
+    "smi",    /*  29 Sami */
     "fo ",    /*  30 Faroese */
-       "",    /*  31 Farsi */
+    "per",    /*  31 Farsi */
     "rus",    /*  32 Russian */
     "chi",    /*  33 Simplified Chinese */
        "",    /*  34 Flemish */
@@ -166,7 +166,7 @@  static const char mov_mdhd_language_map[][4] = {
     "kan",    /*  73 Kannada */
     "tam",    /*  74 Tamil */
     "tel",    /*  75 Telugu */
-       "",    /*  76 Sinhala */
+    "sin",    /*  76 Sinhala */
     "bur",    /*  77 Burmese */
     "khm",    /*  78 Khmer */
     "lao",    /*  79 Lao */
@@ -180,9 +180,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  */