diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2010-03-09 01:53:16 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2010-03-09 01:53:16 +0000 |
commit | fe3ab8adfac9f6eed54d922957941a48127d77bc (patch) | |
tree | 877749025cc50364f79cf386f7d03b4c54c1b2c9 /libavformat/movenc.c | |
parent | cc255afeb53d31938b6ac01cebf61cf7517ad08d (diff) | |
download | ffmpeg-fe3ab8adfac9f6eed54d922957941a48127d77bc.tar.gz |
Fix encoder metadata string langcode in mov muxer
Originally committed as revision 22369 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r-- | libavformat/movenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index bccff37e5d..671a9dde2d 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -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); } |