Revision f584386d

View differences:

libavformat/mov.c
152 152
    if (parse)
153 153
        parse(c, pb, str_size);
154 154
    else {
155
    get_buffer(pb, str, str_size);
156
    str[str_size] = 0;
157
    av_metadata_set(&c->fc->metadata, key, str);
158
    if (*language && strcmp(language, "und")) {
159
        snprintf(key2, sizeof(key2), "%s-%s", key, language);
160
        av_metadata_set(&c->fc->metadata, key2, str);
161
    }
155
        get_buffer(pb, str, str_size);
156
        str[str_size] = 0;
157
        av_metadata_set(&c->fc->metadata, key, str);
158
        if (*language && strcmp(language, "und")) {
159
            snprintf(key2, sizeof(key2), "%s-%s", key, language);
160
            av_metadata_set(&c->fc->metadata, key2, str);
161
        }
162 162
    }
163 163
#ifdef DEBUG_METADATA
164 164
    av_log(c->fc, AV_LOG_DEBUG, "lang \"%3s\" ", language);

Also available in: Unified diff