Fixed gfx-h264 option parsing.

This commit is contained in:
akallabeth 2020-03-15 10:33:34 +01:00
parent 3b673be378
commit 1441e78b70
No known key found for this signature in database
GPG Key ID: 5747DF71D39165A5
1 changed files with 8 additions and 2 deletions

View File

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