copy extradata for streamcopy
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 24 Mar 2005 01:47:45 +0000 (01:47 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 24 Mar 2005 01:47:45 +0000 (01:47 +0000)
Originally committed as revision 4077 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index ebe2400..fb9f242 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1538,6 +1538,8 @@ static int av_encode(AVFormatContext **output_files,
             codec->codec_type = icodec->codec_type;
             if(!codec->codec_tag) codec->codec_tag = icodec->codec_tag;
             codec->bit_rate = icodec->bit_rate;
+            codec->extradata= icodec->extradata;
+            codec->extradata_size= icodec->extradata_size;
             switch(codec->codec_type) {
             case CODEC_TYPE_AUDIO:
                 codec->sample_rate = icodec->sample_rate;