[FFmpeg-cvslog] r9797 - trunk/ffmpeg.c

aurel subversion
Wed Jul 25 21:39:27 CEST 2007


Author: aurel
Date: Wed Jul 25 21:39:27 2007
New Revision: 9797

Log:
copy language information from input stream to output

Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Wed Jul 25 21:39:27 2007
@@ -1507,6 +1507,10 @@ static int av_encode(AVFormatContext **o
         codec = ost->st->codec;
         icodec = ist->st->codec;
 
+        if (!ost->st->language[0])
+            av_strlcpy(ost->st->language, ist->st->language,
+                       sizeof(ost->st->language));
+
         if (ost->st->stream_copy) {
             /* if stream_copy is selected, no need to decode or encode */
             codec->codec_id = icodec->codec_id;




More information about the ffmpeg-cvslog mailing list