From 012d297bb13a290508c8a40c5d9f62d6535bb415 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 3 May 2013 21:00:05 +0200 Subject: video: add --hwdec-codecs option to whitelist codecs for hw decoding --- core/cfg-mplayer.h | 1 + core/defaultopts.c | 2 ++ core/options.h | 1 + 3 files changed, 4 insertions(+) (limited to 'core') 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; -- cgit v1.2.3