From 2dec2bb88074b580d67ecfab037668bed964ae4a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 7 Oct 2010 01:57:35 +0000 Subject: [PATCH] Pass RC parameters on stream copy to the muxer. Originally committed as revision 25384 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ffmpeg.c b/ffmpeg.c index 70f4bfd23..3154eba85 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -2197,6 +2197,8 @@ static int transcode(AVFormatContext **output_files, } codec->bit_rate = icodec->bit_rate; + codec->rc_max_rate = icodec->rc_max_rate; + codec->rc_buffer_size = icodec->rc_buffer_size; codec->extradata= av_mallocz(extra_size); if (!codec->extradata) goto fail; -- 2.11.0