summaryrefslogtreecommitdiff
authorMichael Niedermayer <michaelni@gmx.at>2012-07-07 17:14:21 (GMT)
committer Michael Niedermayer <michaelni@gmx.at>2012-07-07 17:14:21 (GMT)
commit561a365dca6e392c5f6cd718784c57627819eef4 (patch)
tree1d8c56c8181e4e289f83f89680a06556a2c3d83a
parentbb62a8b6900fd08755e96b93eec2607f9ba2bea0 (diff)
downloadffmpeg-561a365dca6e392c5f6cd718784c57627819eef4.zip
ffmpeg-561a365dca6e392c5f6cd718784c57627819eef4.tar.gz
ffmpeg-561a365dca6e392c5f6cd718784c57627819eef4.tar.bz2
pp: check that the argument is not NULL as this is not supported
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat
-rw-r--r--libpostproc/postprocess.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c
index 62eb3b2..2234ba8 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) {