Merge pull request #5974 from akallabeth/cmd_avc420_fix

Cmd avc420 fix
This commit is contained in:
Martin Fleisz
2020-04-02 08:41:47 +02:00
committed by GitHub
2 changed files with 11 additions and 4 deletions

View File

@@ -2554,10 +2554,14 @@ int freerdp_client_settings_parse_command_line_arguments(rdpSettings* settings,
if (_strnicmp("AVC444", val, 7) == 0)
{
settings->GfxH264 = TRUE;
settings->GfxAVC444 = TRUE;
}
else if (_strnicmp("AVC420", val, 7) != 0)
rc = COMMAND_LINE_ERROR;
else if (_strnicmp("AVC420", val, 7) == 0)
{
settings->GfxH264 = TRUE;
settings->GfxAVC444 = FALSE;
}
else if (_strnicmp("mask:", val, 5) == 0)
{
ULONGLONG v;
@@ -2567,6 +2571,8 @@ int freerdp_client_settings_parse_command_line_arguments(rdpSettings* settings,
else
settings->GfxCapsFilter = (UINT32)v;
}
else
rc = COMMAND_LINE_ERROR;
}
}
free(p);

View File

@@ -159,8 +159,9 @@ static const COMMAND_LINE_ARGUMENT_A args[] = {
#ifdef WITH_GFX_H264
{ "gfx", COMMAND_LINE_VALUE_OPTIONAL, "[[RFX|AVC420|AVC444],mask:<value>]", NULL, NULL, -1,
NULL, "RDP8 graphics pipeline" },
{ "gfx-h264", COMMAND_LINE_VALUE_OPTIONAL, "[[AVC420|AVC444],mask:<value>]", NULL, NULL, -1,
NULL, "RDP8.1 graphics pipeline using H264 codec" },
{ "gfx-h264", COMMAND_LINE_VALUE_OPTIONAL,
"[[AVC420|AVC444],mask:<value>] [DEPRECATED] use /gfx:avc420 instead", NULL, NULL, -1, NULL,
"RDP8.1 graphics pipeline using H264 codec" },
#else
{ "gfx", COMMAND_LINE_VALUE_OPTIONAL, "RFX", NULL, NULL, -1, NULL, "RDP8 graphics pipeline" },
#endif