[vlc-commits] aom: encoder: make one-pass explicit

Tristan Matthews git at videolan.org
Wed Jul 22 14:15:35 CEST 2020


vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Tue Jul 21 00:06:44 2020 -0400| [b9211dba47a87dcefd751d78114886e3b3d9bbd1] | committer: Tristan Matthews

aom: encoder: make one-pass explicit

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

 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);



More information about the vlc-commits mailing list