From 5a9f21db548f1a3d9b31dfc4f758a0af83bab725 Mon Sep 17 00:00:00 2001 From: Tom Finegan Date: Wed, 15 Jun 2016 13:42:59 -0700 Subject: Output frames in first pass for VPX_DL_REALTIME. Since combining VPX_DL_REALTIME with VPX_RC_FIRST_PASS is basically nonsense, ignore the user's pass setting when this happens and behave as if the requested encode is a single pass encode. BUG=webm:1233 Change-Id: I5ee4c4e5838c4ca6d24988890aae490b10826db2 --- vp9/vp9_cx_iface.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vp9') diff --git a/vp9/vp9_cx_iface.c b/vp9/vp9_cx_iface.c index 73a089bcf..9ad86cbf8 100644 --- a/vp9/vp9_cx_iface.c +++ b/vp9/vp9_cx_iface.c @@ -905,6 +905,11 @@ static void pick_quickcompress_mode(vpx_codec_alg_priv_t *ctx, break; } + if (deadline == VPX_DL_REALTIME) { + ctx->oxcf.pass = 0; + new_mode = REALTIME; + } + if (ctx->oxcf.mode != new_mode) { ctx->oxcf.mode = new_mode; vp9_change_config(ctx->cpi, &ctx->oxcf); -- cgit v1.2.3