diff options
Diffstat (limited to 'video/decode/d3d11va.c')
-rw-r--r-- | video/decode/d3d11va.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/decode/d3d11va.c b/video/decode/d3d11va.c index dd4535bdd7..8ce026bc96 100644 --- a/video/decode/d3d11va.c +++ b/video/decode/d3d11va.c @@ -195,6 +195,9 @@ static struct mp_image *d3d11va_update_image_attribs(struct lavc_ctx *s, } } + if (img->params.hw_subfmt == IMGFMT_NV12) + mp_image_setfmt(img, IMGFMT_D3D11NV12); + return img; } |