[FFmpeg-cvslog] ffmpeg: preserve avg_frame_rate on stream copy.

Michael Niedermayer git at videolan.org
Sun Nov 6 00:13:01 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Nov  5 23:43:01 2011 +0100| [0e55902324f07c91821154ad4cf84cbc8066a1f5] | committer: Michael Niedermayer

ffmpeg: preserve avg_frame_rate on stream copy.

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0e55902324f07c91821154ad4cf84cbc8066a1f5
---

 ffmpeg.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 24deeee..a836c98 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;



More information about the ffmpeg-cvslog mailing list