[vlc-devel] [PATCH 2/2] aom: encoder: make one-pass explicit

Tristan Matthews tmatth at videolan.org
Tue Jul 21 06:16:47 CEST 2020


---
 modules/codec/aom.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/codec/aom.c b/modules/codec/aom.c
index b3d703933f..d7a2f6da65 100644
--- a/modules/codec/aom.c
+++ b/modules/codec/aom.c
@@ -433,6 +433,8 @@ static int OpenEncoder(vlc_object_t *p_this)
 
     struct aom_codec_enc_cfg enccfg = { 0 };
     aom_codec_enc_config_default(iface, &enccfg, 0);
+    /* TODO: implement 2-pass */
+    enccfg.g_pass = AOM_RC_ONE_PASS;
     enccfg.g_timebase.num = p_enc->fmt_in.video.i_frame_rate_base;
     enccfg.g_timebase.den = p_enc->fmt_in.video.i_frame_rate;
     enccfg.g_threads = __MIN(vlc_GetCPUCount(), 4);
-- 
2.25.1



More information about the vlc-devel mailing list