Browse Source

libpostproc: add pp=help support to print the help text via av_log()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 14 years ago
parent
commit
f1808e3048
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      libpostproc/postprocess.c

+ 9
- 0
libpostproc/postprocess.c View File

@@ -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;


Loading…
Cancel
Save