Browse code

copy language information from input stream to output

Originally committed as revision 9797 to svn://svn.ffmpeg.org/ffmpeg/trunk

Aurelien Jacobs authored on 2007/07/26 04:39:27
Showing 1 changed files
... ...
@@ -1507,6 +1507,10 @@ static int av_encode(AVFormatContext **output_files,
1507 1507
         codec = ost->st->codec;
1508 1508
         icodec = ist->st->codec;
1509 1509
 
1510
+        if (!ost->st->language[0])
1511
+            av_strlcpy(ost->st->language, ist->st->language,
1512
+                       sizeof(ost->st->language));
1513
+
1510 1514
         if (ost->st->stream_copy) {
1511 1515
             /* if stream_copy is selected, no need to decode or encode */
1512 1516
             codec->codec_id = icodec->codec_id;