Skip to content
Snippets Groups Projects
Commit 561a365d authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

pp: check that the argument is not NULL as this is not supported

parent bb62a8b6
No related branches found
No related tags found
No related merge requests found
......@@ -728,6 +728,11 @@ pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality)
struct PPMode *ppMode;
char *filterToken;
if (!name) {
av_log(NULL, AV_LOG_ERROR, "pp: Missing argument\n");
return NULL;
}
if (!strcmp(name, "help")) {
const char *p;
for (p = pp_help; strchr(p, '\n'); p = strchr(p, '\n') + 1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment