From 40d59bd85e675f4b82eeb11ec26d2ccdeaa28ac6 Mon Sep 17 00:00:00 2001 From: Francois Cartegnie Date: Thu, 20 Dec 2018 15:55:14 +0100 Subject: [PATCH] codec: aom: set max encoder lag otherwise will queue up to few mins and before returning first frame which borks sout (no pcr !) --- 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" ); -- 2.11.4.GIT