From 429fdef04fbc40da9050f4b008a438feb56d3450 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Thu, 11 Mar 2021 10:55:12 +0100 Subject: [PATCH] Fix encoder parameter suggestion The option is --encoder, not --encoder-name. --- server/src/main/java/com/genymobile/scrcpy/Server.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/com/genymobile/scrcpy/Server.java b/server/src/main/java/com/genymobile/scrcpy/Server.java index f58e38674d..7887a5a717 100644 --- a/server/src/main/java/com/genymobile/scrcpy/Server.java +++ b/server/src/main/java/com/genymobile/scrcpy/Server.java @@ -230,7 +230,7 @@ private static void suggestFix(Throwable e) { if (encoders != null && encoders.length > 0) { Ln.e("Try to use one of the available encoders:"); for (MediaCodecInfo encoder : encoders) { - Ln.e(" scrcpy --encoder-name '" + encoder.getName() + "'"); + Ln.e(" scrcpy --encoder '" + encoder.getName() + "'"); } } }