summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2020-12-30 15:58:48 +0100
committerJan Ekström <jeebjp@gmail.com>2020-12-30 17:30:01 +0200
commit5f2b60a645238505228a8fda429a4e47a285eff0 (patch)
tree10e54a3f38a39310b4b004736e915ce4e99c42ac
parentbe167c227b842427f285732a054ea025a630e591 (diff)
downloadmpv-5f2b60a645238505228a8fda429a4e47a285eff0.tar.bz2
mpv-5f2b60a645238505228a8fda429a4e47a285eff0.tar.xz
vd_lavc: add VP8 to the default allowed hwdec codec list
It is supported at least on Intel, from gen8 to gen11, and still gives a pretty welcome reduction of CPU usage on my gen9.
-rw-r--r--DOCS/man/options.rst2
-rw-r--r--video/decode/vd_lavc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index c92353a2a6..18dee24e35 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -1606,7 +1606,7 @@ Video
You can get the list of allowed codecs with ``mpv --vd=help``. Remove the
prefix, e.g. instead of ``lavc:h264`` use ``h264``.
- By default, this is set to ``h264,vc1,hevc,vp9,av1``. Note that
+ By default, this is set to ``h264,vc1,hevc,vp8,vp9,av1``. Note that
the hardware acceleration special codecs like ``h264_vdpau`` are not
relevant anymore, and in fact have been removed from Libav in this form.
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index f965e00e5a..15eab18bf9 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -135,7 +135,7 @@ const struct m_sub_options vd_lavc_conf = {
.framedrop = AVDISCARD_NONREF,
.dr = 1,
.hwdec_api = "no",
- .hwdec_codecs = "h264,vc1,hevc,vp9,av1",
+ .hwdec_codecs = "h264,vc1,hevc,vp8,vp9,av1",
// Maximum number of surfaces the player wants to buffer. This number
// might require adjustment depending on whatever the player does;
// for example, if vo_gpu increases the number of reference surfaces for