summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-11-05 23:43:01 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-11-06 00:09:40 +0100
commit0e55902324f07c91821154ad4cf84cbc8066a1f5 (patch)
tree1c562adb91967c75e94605ea4f93f3c351bb4fb9 /ffmpeg.c
parent439e1d196b26847dd0bfebf143918dd04552bd04 (diff)
ffmpeg: preserve avg_frame_rate on stream copy.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 24deeee0a1..a836c98abb 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;