[FFmpeg-cvslog] r22369 - trunk/libavformat/movenc.c

bcoudurier subversion
Tue Mar 9 02:53:16 CET 2010


Author: bcoudurier
Date: Tue Mar  9 02:53:16 2010
New Revision: 22369

Log:
Fix encoder metadata string langcode in mov muxer

Modified:
   trunk/libavformat/movenc.c

Modified: trunk/libavformat/movenc.c
==============================================================================
--- trunk/libavformat/movenc.c	Tue Mar  9 02:21:09 2010	(r22368)
+++ trunk/libavformat/movenc.c	Tue Mar  9 02:53:16 2010	(r22369)
@@ -1355,6 +1355,8 @@ static int mov_write_string_data_tag(Byt
         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(AVF
             break;
         }
     }
-    if (!lang)
-        lang = ff_mov_iso639_to_lang("und", 1);
     return mov_write_string_tag(pb, name, t->value, lang, long_style);
 }
 



More information about the ffmpeg-cvslog mailing list