Commit 956ce11e authored by Can Wu's avatar Can Wu Committed by Rafaël Carré

vo: don't call strlen() on same string once again in postprocessing

Signed-off-by: default avatarRafaël Carré <rafael.carre@gmail.com>
parent 8c76228d
...@@ -36,7 +36,7 @@ static bool PostProcessIsPresent(const char *filter) ...@@ -36,7 +36,7 @@ static bool PostProcessIsPresent(const char *filter)
const char *pp = "postproc"; const char *pp = "postproc";
const size_t pp_length = strlen(pp); const size_t pp_length = strlen(pp);
return filter && return filter &&
!strncmp(filter, pp, strlen(pp)) && !strncmp(filter, pp, pp_length) &&
(filter[pp_length] == '\0' || filter[pp_length] == ':'); (filter[pp_length] == '\0' || filter[pp_length] == ':');
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment