libpostproc: add pp=help support to print the help text via av_log()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7b4e1466d4
commit
f1808e3048
@ -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…
x
Reference in New Issue
Block a user