xvmc: fix string comparison
Fixes: 6fca18696d
"g3dvl: Update XvMC unit tests."
Cc: Younes Manton <younes.m@gmail.com>
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
parent
110a6e1839
commit
40b53a7203
|
@ -123,11 +123,11 @@ void ParseArgs(int argc, char **argv, struct Config *config)
|
||||||
|
|
||||||
while (token && !fail)
|
while (token && !fail)
|
||||||
{
|
{
|
||||||
if (strcmp(token, "i"))
|
if (strcmp(token, "i") == 0)
|
||||||
config->mb_types |= MB_TYPE_I;
|
config->mb_types |= MB_TYPE_I;
|
||||||
else if (strcmp(token, "p"))
|
else if (strcmp(token, "p") == 0)
|
||||||
config->mb_types |= MB_TYPE_P;
|
config->mb_types |= MB_TYPE_P;
|
||||||
else if (strcmp(token, "b"))
|
else if (strcmp(token, "b") == 0)
|
||||||
config->mb_types |= MB_TYPE_B;
|
config->mb_types |= MB_TYPE_B;
|
||||||
else
|
else
|
||||||
fail = 1;
|
fail = 1;
|
||||||
|
|
Loading…
Reference in New Issue