Mercurial > libavformat.hg
changeset 5792:2fb291f12e5f libavformat
Fix encoder metadata string langcode in mov muxer
author | bcoudurier |
---|---|
date | Tue, 09 Mar 2010 01:53:16 +0000 |
parents | 9cde0ca98839 |
children | 640f14283092 |
files | movenc.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/movenc.c Tue Mar 09 01:21:09 2010 +0000 +++ b/movenc.c Tue Mar 09 01:53:16 2010 +0000 @@ -1355,6 +1355,8 @@ 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 @@ break; } } - if (!lang) - lang = ff_mov_iso639_to_lang("und", 1); return mov_write_string_tag(pb, name, t->value, lang, long_style); }