Rename --codec to --video-codec

This prepares the introduction of --audio-codec.
This commit is contained in:
Romain Vimont
2023-02-20 21:19:36 +01:00
parent fef75277bc
commit 3513fc7809
13 changed files with 56 additions and 42 deletions

View File

@@ -231,7 +231,7 @@ public class ScreenEncoder implements Device.RotationListener {
if (encoders != null && encoders.length > 0) {
msg.append("\nTry to use one of the available encoders:");
for (MediaCodecInfo encoder : encoders) {
msg.append("\n scrcpy --codec=").append(codec.getName()).append(" --encoder='").append(encoder.getName()).append("'");
msg.append("\n scrcpy --video-codec=").append(codec.getName()).append(" --encoder='").append(encoder.getName()).append("'");
}
}
return msg.toString();