[vlc-commits] commit: avcodec: default gop=120 for vp80 (Ilkka Ollakka )
git at videolan.org
git at videolan.org
Sat Jun 5 13:25:52 CEST 2010
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sat Jun 5 14:16:18 2010 +0300| [c5010ad330c808122ca16cdcbbd1b20d330b1d4b] | committer: Ilkka Ollakka
avcodec: default gop=120 for vp80
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c5010ad330c808122ca16cdcbbd1b20d330b1d4b
---
modules/codec/avcodec/encoder.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/codec/avcodec/encoder.c b/modules/codec/avcodec/encoder.c
index 841ab16..90e76e6 100644
--- a/modules/codec/avcodec/encoder.c
+++ b/modules/codec/avcodec/encoder.c
@@ -602,6 +602,9 @@ int OpenEncoder( vlc_object_t *p_this )
{
/* Lets give bitrate tolerance */
p_context->bit_rate_tolerance = __MAX(2 * p_enc->fmt_out.i_bitrate, p_sys->i_vtolerance );
+ /* default to 120 frames between keyframe */
+ if( !var_GetInteger( p_enc, ENC_CFG_PREFIX "keyint" ) )
+ p_context->gop_size = 120;
/* seems that ffmpeg presets have 720p as divider for buffers */
if( p_enc->fmt_out.video.i_width >= 720 )
{
More information about the vlc-commits
mailing list