Revision cc255afe libavformat/movenc.c

View differences:

libavformat/movenc.c
1390 1390
    while ((t2 = av_metadata_get(s->metadata, tag2, t2, AV_METADATA_IGNORE_SUFFIX))) {
1391 1391
        len2 = strlen(t2->key);
1392 1392
        if (len2 == len+4 && !strcmp(t->value, t2->value)
1393
            && (l=ff_mov_iso639_to_lang(&t2->key[len2-3], 0)) >= 0) {
1393
            && (l=ff_mov_iso639_to_lang(&t2->key[len2-3], 1)) >= 0) {
1394 1394
            lang = l;
1395 1395
            break;
1396 1396
        }
1397 1397
    }
1398
    if (!lang)
1399
        lang = ff_mov_iso639_to_lang("und", 1);
1398 1400
    return mov_write_string_tag(pb, name, t->value, lang, long_style);
1399 1401
}
1400 1402

  

Also available in: Unified diff