forked from FFmpeg/FFmpeg
pp: check that the argument is not NULL as this is not supported
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
bb62a8b690
commit
561a365dca
1 changed files with 5 additions and 0 deletions
|
@ -728,6 +728,11 @@ pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality)
|
||||||
struct PPMode *ppMode;
|
struct PPMode *ppMode;
|
||||||
char *filterToken;
|
char *filterToken;
|
||||||
|
|
||||||
|
if (!name) {
|
||||||
|
av_log(NULL, AV_LOG_ERROR, "pp: Missing argument\n");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (!strcmp(name, "help")) {
|
if (!strcmp(name, "help")) {
|
||||||
const char *p;
|
const char *p;
|
||||||
for (p = pp_help; strchr(p, '\n'); p = strchr(p, '\n') + 1) {
|
for (p = pp_help; strchr(p, '\n'); p = strchr(p, '\n') + 1) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue