vlc | branch: master | Francois Cartegnie <[email protected]> | Thu Dec 20 
15:55:14 2018 +0100| [40d59bd85e675f4b82eeb11ec26d2ccdeaa28ac6] | committer: 
Francois Cartegnie

codec: aom: set max encoder lag

otherwise will queue up to few mins
and before returning first frame
which borks sout (no pcr !)

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

 modules/codec/aom.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/codec/aom.c b/modules/codec/aom.c
index 7b95b18661..70953cf6d8 100644
--- a/modules/codec/aom.c
+++ b/modules/codec/aom.c
@@ -423,6 +423,7 @@ static int OpenEncoder(vlc_object_t *p_this)
     enccfg.g_threads = __MIN(vlc_GetCPUCount(), 4);
     enccfg.g_w = p_enc->fmt_in.video.i_visible_width;
     enccfg.g_h = p_enc->fmt_in.video.i_visible_height;
+    enccfg.g_lag_in_frames = 16; /* we have no pcr on sout */
 
     int enc_flags;
     int i_profile = var_InheritInteger( p_enc, SOUT_CFG_PREFIX "profile" );

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to