aboutsummaryrefslogtreecommitdiffstats
path: root/libpostproc
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-07 19:14:21 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-07 19:14:21 +0200
commit561a365dca6e392c5f6cd718784c57627819eef4 (patch)
tree1d8c56c8181e4e289f83f89680a06556a2c3d83a /libpostproc
parentbb62a8b6900fd08755e96b93eec2607f9ba2bea0 (diff)
downloadffmpeg-561a365dca6e392c5f6cd718784c57627819eef4.tar.gz
pp: check that the argument is not NULL as this is not supported
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libpostproc')
-rw-r--r--libpostproc/postprocess.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c
index 62eb3b2de0..2234ba8c76 100644
--- a/libpostproc/postprocess.c
+++ b/libpostproc/postprocess.c
@@ -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) {