summaryrefslogtreecommitdiffstats
path: root/video/decode
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossymiles@gmail.com>2015-01-07 23:00:22 +1100
committerJames Ross-Gowan <rossymiles@gmail.com>2015-01-07 23:00:22 +1100
commita0959582631118078cd39695d023678ff4bfe9f8 (patch)
tree39b596daaf90a0b4d560bdc469874b8dcc9e6338 /video/decode
parent9a3ab5c2986461398edc28e4069d9e70cd0b6482 (diff)
downloadmpv-a0959582631118078cd39695d023678ff4bfe9f8.tar.bz2
mpv-a0959582631118078cd39695d023678ff4bfe9f8.tar.xz
dxva2: copy mp_image attributes to sw_img
Diffstat (limited to 'video/decode')
-rw-r--r--video/decode/dxva2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/decode/dxva2.c b/video/decode/dxva2.c
index 0cd5735d2d..405ad293b4 100644
--- a/video/decode/dxva2.c
+++ b/video/decode/dxva2.c
@@ -321,6 +321,7 @@ static struct mp_image *dxva2_retrieve_image(struct lavc_ctx *s,
}
ctx->copy_nv12(sw_img, LockedRect.pBits, LockedRect.Pitch, surfaceDesc.Height);
+ mp_image_copy_attributes(sw_img, img);
IDirect3DSurface9_UnlockRect(surface);