summaryrefslogtreecommitdiffstats
path: root/video/decode
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-03-02 22:20:04 +0100
committerwm4 <wm4@nowhere>2016-03-02 22:20:15 +0100
commitfa8b2be4de852a3fc0ef340543a1f6737d611435 (patch)
treee18b8601e57017a920af51d6d70c6706af22d64f /video/decode
parenta888f08b78e9b3bc1ce59fbfcd1e4b4eafb23245 (diff)
downloadmpv-fa8b2be4de852a3fc0ef340543a1f6737d611435.tar.bz2
mpv-fa8b2be4de852a3fc0ef340543a1f6737d611435.tar.xz
av_common: explicitly exclude _vdpau deccoders from enumeration
Completely pointless abominations that FFmpeg refuses to remove. They are ancient, long deprecated API which we can't use anymore. They confused users as well. Pretend that they don't exist. Due to the way --vd works, they can't even be forced anymore. The older hack which explicitly rejects these can be dropped as well.
Diffstat (limited to 'video/decode')
-rw-r--r--video/decode/vd_lavc.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index 0520c3a4fd..fa1d2ddf55 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -335,17 +335,6 @@ static int init(struct dec_video *vd, const char *decoder)
ctx->opts = vd->opts;
ctx->decoder = talloc_strdup(ctx, decoder);
- if (bstr_endswith0(bstr0(decoder), "_vdpau")) {
- MP_WARN(vd, "VDPAU decoder '%s' was requested. "
- "This way of enabling hardware\ndecoding is not supported "
- "anymore. Use --hwdec=vdpau instead.\nThe --hwdec-codec=... "
- "option can be used to restrict which codecs are\nenabled, "
- "otherwise all hardware decoding is tried for all codecs.\n",
- decoder);
- uninit(vd);
- return 0;
- }
-
reinit(vd);
if (!ctx->avctx) {