diff options
author | wm4 <wm4@nowhere> | 2013-05-03 21:00:05 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-05-04 01:38:27 +0200 |
commit | 012d297bb13a290508c8a40c5d9f62d6535bb415 (patch) | |
tree | 172276c4d2f59a6851af483f30088b72fe10eedf /core | |
parent | 844249317b350ad2a9f71b4382252027861d9e20 (diff) | |
download | mpv-012d297bb13a290508c8a40c5d9f62d6535bb415.tar.bz2 mpv-012d297bb13a290508c8a40c5d9f62d6535bb415.tar.xz |
video: add --hwdec-codecs option to whitelist codecs for hw decoding
Diffstat (limited to 'core')
-rw-r--r-- | core/cfg-mplayer.h | 1 | ||||
-rw-r--r-- | core/defaultopts.c | 2 | ||||
-rw-r--r-- | core/options.h | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/core/cfg-mplayer.h b/core/cfg-mplayer.h index 7414d561bd..570c403f9c 100644 --- a/core/cfg-mplayer.h +++ b/core/cfg-mplayer.h @@ -449,6 +449,7 @@ const m_option_t common_opts[] = { {"vdpau", 1}, {"vda", 2}, {"crystalhd", 3})), + OPT_STRING("hwdec-codecs", hwdec_codecs, 0), // postprocessing: {"pp", &divx_quality, CONF_TYPE_INT, 0, 0, 0, NULL}, diff --git a/core/defaultopts.c b/core/defaultopts.c index 3231c8142d..03d697d732 100644 --- a/core/defaultopts.c +++ b/core/defaultopts.c @@ -86,6 +86,8 @@ void set_default_mplayer_options(struct MPOpts *opts) .ass_style_override = 1, .use_embedded_fonts = 1, + .hwdec_codecs = "all", + .lavc_param = { .workaround_bugs = 1, // autodetect .error_concealment = 3, diff --git a/core/options.h b/core/options.h index 8806a66211..4729d7ca6a 100644 --- a/core/options.h +++ b/core/options.h @@ -185,6 +185,7 @@ typedef struct MPOpts { int ass_hinting; int hwdec_api; + char *hwdec_codecs; struct lavc_param { int workaround_bugs; |