diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-01-22 10:01:14 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-01-22 10:01:14 +0000 |
commit | 079e8cb9623a17f552bc98284a22ac14fbe5c3e5 (patch) | |
tree | b847a095f980ad5ed89e80b02e88bcfeb4bfb4be /ffmpeg.c | |
parent | 0521946359241bbd72d6a226351c8812c1730b11 (diff) | |
download | ffmpeg-streaming-079e8cb9623a17f552bc98284a22ac14fbe5c3e5.zip ffmpeg-streaming-079e8cb9623a17f552bc98284a22ac14fbe5c3e5.tar.gz |
do not override rc_buffer_occupancy if set
Originally committed as revision 7641 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2868,7 +2868,8 @@ static void new_video_stream(AVFormatContext *oc) if(p) p++; } video_enc->rc_override_count=i; - video_enc->rc_initial_buffer_occupancy = video_enc->rc_buffer_size*3/4; + if (!video_enc->rc_initial_buffer_occupancy) + video_enc->rc_initial_buffer_occupancy = video_enc->rc_buffer_size*3/4; video_enc->me_threshold= me_threshold; video_enc->intra_dc_precision= intra_dc_precision - 8; video_enc->strict_std_compliance = strict; |