aboutsummaryrefslogtreecommitdiffstats
path: root/libpostproc/postprocess.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-02-27 21:48:18 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-02-27 23:07:25 +0100
commitf1808e304834304122ebce9325eb997a673a9dc2 (patch)
treef13f044c6768b1a148bd95ecbc0320b9d933172e /libpostproc/postprocess.c
parent7b4e1466d4cb9283facd874fa109b6b3389b67e2 (diff)
downloadffmpeg-f1808e304834304122ebce9325eb997a673a9dc2.tar.gz
libpostproc: add pp=help support to print the help text via av_log()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libpostproc/postprocess.c')
-rw-r--r--libpostproc/postprocess.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c
index ed5c240012..ef9cd44af9 100644
--- a/libpostproc/postprocess.c
+++ b/libpostproc/postprocess.c
@@ -723,6 +723,15 @@ pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality)
struct PPMode *ppMode;
char *filterToken;
+ if (!strcmp(name, "help")) {
+ const char *p;
+ for (p = pp_help; strchr(p, '\n'); p = strchr(p, '\n') + 1) {
+ av_strlcpy(temp, p, FFMIN(sizeof(temp), strchr(p, '\n') - p + 2));
+ av_log(NULL, AV_LOG_INFO, "%s", temp);
+ }
+ return NULL;
+ }
+
ppMode= av_malloc(sizeof(PPMode));
ppMode->lumMode= 0;