mirror of https://github.com/mpv-player/mpv
vdpau: warn on HEVC due to completely broken nVidia drivers
I guess that's the full extent I still care about nVidia's broken garbage. In theory, we could always force the video mixer (which is the only method getting the video data that works), but why bother.
This commit is contained in:
parent
94e82bcdb8
commit
4e384c8e69
|
@ -51,10 +51,13 @@ static int init_decoder(struct lavc_ctx *ctx, int w, int h)
|
|||
if (mp_vdpau_handle_preemption(p->mpvdp, &p->preemption_counter) < 0)
|
||||
return 0;
|
||||
|
||||
return av_vdpau_bind_context(ctx->avctx, p->mpvdp->vdp_device,
|
||||
p->mpvdp->get_proc_address,
|
||||
AV_HWACCEL_FLAG_IGNORE_LEVEL |
|
||||
AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH);
|
||||
int r = av_vdpau_bind_context(ctx->avctx, p->mpvdp->vdp_device,
|
||||
p->mpvdp->get_proc_address,
|
||||
AV_HWACCEL_FLAG_IGNORE_LEVEL |
|
||||
AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH);
|
||||
if (r >= 0 && ctx->avctx->codec_id == AV_CODEC_ID_HEVC)
|
||||
MP_WARN(ctx, "HEVC video output may be broken due to nVidia bugs.\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
static void uninit(struct lavc_ctx *ctx)
|
||||
|
|
Loading…
Reference in New Issue