mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 07:40:00 +08:00
avplay: Accept cpuflags option
Quite useful for debugging. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
12
cmdutils.c
12
cmdutils.c
@ -43,6 +43,7 @@
|
||||
#include "libavutil/eval.h"
|
||||
#include "libavutil/dict.h"
|
||||
#include "libavutil/opt.h"
|
||||
#include "libavutil/cpu.h"
|
||||
#include "cmdutils.h"
|
||||
#include "version.h"
|
||||
#if CONFIG_NETWORK
|
||||
@ -694,6 +695,17 @@ do { \
|
||||
return 0;
|
||||
}
|
||||
|
||||
int opt_cpuflags(void *optctx, const char *opt, const char *arg)
|
||||
{
|
||||
int flags = av_parse_cpu_flags(arg);
|
||||
|
||||
if (flags < 0)
|
||||
return flags;
|
||||
|
||||
av_set_cpu_flags_mask(flags);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int opt_loglevel(void *optctx, const char *opt, const char *arg)
|
||||
{
|
||||
const struct { const char *name; int level; } log_levels[] = {
|
||||
|
Reference in New Issue
Block a user