mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
Fix encoder metadata string langcode in mov muxer
Originally committed as revision 22369 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
cc255afeb5
commit
fe3ab8adfa
@ -1355,6 +1355,8 @@ static int mov_write_string_data_tag(ByteIOContext *pb, const char *data, int la
|
||||
put_buffer(pb, data, strlen(data));
|
||||
return updateSize(pb, pos);
|
||||
}else{
|
||||
if (!lang)
|
||||
lang = ff_mov_iso639_to_lang("und", 1);
|
||||
put_be16(pb, strlen(data)); /* string length */
|
||||
put_be16(pb, lang);
|
||||
put_buffer(pb, data, strlen(data));
|
||||
@ -1395,8 +1397,6 @@ static int mov_write_string_metadata(AVFormatContext *s, ByteIOContext *pb,
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!lang)
|
||||
lang = ff_mov_iso639_to_lang("und", 1);
|
||||
return mov_write_string_tag(pb, name, t->value, lang, long_style);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user