ffmpeg: preserve avg_frame_rate on stream copy.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-11-05 23:43:01 +01:00
parent 439e1d196b
commit 0e55902324

View File

@ -2162,6 +2162,7 @@ static int transcode_init(OutputFile *output_files, int nb_output_files,
ist->st->codec->sample_aspect_ratio.num ?
ist->st->codec->sample_aspect_ratio : (AVRational){0, 1};
}
ost->st->avg_frame_rate = ist->st->avg_frame_rate;
break;
case AVMEDIA_TYPE_SUBTITLE:
codec->width = icodec->width;