[vlc-commits] commit: avcodec: default gop=120 for vp80 (Ilkka Ollakka )

git at videolan.org git at videolan.org
Sat Jun 5 16:58:17 CEST 2010


vlc/vlc-1.1 | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sat Jun  5 14:16:18 2010 +0300| [539721c7cc861ce7b4fe3458328f5fd26f3a1448] | committer: Ilkka Ollakka 

avcodec: default gop=120 for vp80
(cherry picked from commit c5010ad330c808122ca16cdcbbd1b20d330b1d4b)

Signed-off-by: Ilkka Ollakka <ileoo at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=539721c7cc861ce7b4fe3458328f5fd26f3a1448
---

 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 3f418de..0008e8c 100644
--- a/modules/codec/avcodec/encoder.c
+++ b/modules/codec/avcodec/encoder.c
@@ -586,6 +586,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