ffmpeg: forward r_frame_rate to the muxer in case of stream copy
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 14 Dec 2014 00:16:39 +0000 (01:16 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 14 Dec 2014 01:12:49 +0000 (02:12 +0100)
Fixes Ticket3629 part2

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index eef774b..d38c904 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2740,6 +2740,7 @@ static int transcode_init(void)
                     sar = dec_ctx->sample_aspect_ratio;
                 ost->st->sample_aspect_ratio = enc_ctx->sample_aspect_ratio = sar;
                 ost->st->avg_frame_rate = ist->st->avg_frame_rate;
+                ost->st->r_frame_rate = ist->st->r_frame_rate;
                 break;
             case AVMEDIA_TYPE_SUBTITLE:
                 enc_ctx->width  = dec_ctx->width;