ffmpeg: preserve avg_frame_rate on stream copy.
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 5 Nov 2011 22:43:01 +0000 (23:43 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 5 Nov 2011 23:09:40 +0000 (00:09 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index 24deeee..a836c98 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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;