Commit f1808e30 authored by Michael Niedermayer's avatar Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7b4e1466
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment