summaryrefslogtreecommitdiff
path: root/avconv_opt.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-01-14 05:32:38 +0100
committerLuca Barbato <lu_zero@gentoo.org>2013-01-15 08:58:51 +0100
commitbff3607547fdbb6e32b3830a351e6a33280c1e0d (patch)
tree882dd67362c44ea4bf303473e00e156a3ed7ab90 /avconv_opt.c
parentd8c772de53d29afb1bada88afa859fce8489c668 (diff)
lavc: set the default rc_initial_buffer_occupancy
rc_buffer_size is not set before. Solve the initial the rate control underflow issue reported in bug 222. CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'avconv_opt.c')
-rw-r--r--avconv_opt.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/avconv_opt.c b/avconv_opt.c
index ce32df6b6b..e67abefd77 100644
--- a/avconv_opt.c
+++ b/avconv_opt.c
@@ -950,8 +950,6 @@ static OutputStream *new_video_stream(OptionsContext *o, AVFormatContext *oc)
if (p) p++;
}
video_enc->rc_override_count = i;
- if (!video_enc->rc_initial_buffer_occupancy)
- video_enc->rc_initial_buffer_occupancy = video_enc->rc_buffer_size * 3 / 4;
video_enc->intra_dc_precision = intra_dc_precision - 8;
/* two pass mode */