copy language information from input stream to output

Originally committed as revision 9797 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Aurelien Jacobs 18 years ago
parent a03d59b720
commit 8e0d882b49
  1. 4
      ffmpeg.c

@ -1507,6 +1507,10 @@ static int av_encode(AVFormatContext **output_files,
codec = ost->st->codec; codec = ost->st->codec;
icodec = ist->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 (ost->st->stream_copy) {
/* if stream_copy is selected, no need to decode or encode */ /* if stream_copy is selected, no need to decode or encode */
codec->codec_id = icodec->codec_id; codec->codec_id = icodec->codec_id;

Loading…
Cancel
Save