Commit 3f10f6b2 authored by bcoudurier's avatar bcoudurier

Fix encoder metadata string langcode in mov muxer

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22369 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a0781a0e
...@@ -1355,6 +1355,8 @@ static int mov_write_string_data_tag(ByteIOContext *pb, const char *data, int la ...@@ -1355,6 +1355,8 @@ static int mov_write_string_data_tag(ByteIOContext *pb, const char *data, int la
put_buffer(pb, data, strlen(data)); put_buffer(pb, data, strlen(data));
return updateSize(pb, pos); return updateSize(pb, pos);
}else{ }else{
if (!lang)
lang = ff_mov_iso639_to_lang("und", 1);
put_be16(pb, strlen(data)); /* string length */ put_be16(pb, strlen(data)); /* string length */
put_be16(pb, lang); put_be16(pb, lang);
put_buffer(pb, data, strlen(data)); put_buffer(pb, data, strlen(data));
...@@ -1395,8 +1397,6 @@ static int mov_write_string_metadata(AVFormatContext *s, ByteIOContext *pb, ...@@ -1395,8 +1397,6 @@ static int mov_write_string_metadata(AVFormatContext *s, ByteIOContext *pb,
break; break;
} }
} }
if (!lang)
lang = ff_mov_iso639_to_lang("und", 1);
return mov_write_string_tag(pb, name, t->value, lang, long_style); return mov_write_string_tag(pb, name, t->value, lang, long_style);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment