From 0e55902324f07c91821154ad4cf84cbc8066a1f5 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Sat, 5 Nov 2011 23:43:01 +0100
Subject: [PATCH] ffmpeg: preserve avg_frame_rate on stream copy.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
---
 ffmpeg.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ffmpeg.c b/ffmpeg.c
index 24deeee0a17..a836c98abbe 100644
--- 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;
-- 
GitLab