summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossymiles@gmail.com>2015-01-07 23:00:22 +1100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-01-25 17:00:07 +0900
commit6609f68691677ac8ef2613a41bd8a21fd01d9cd8 (patch)
tree2d060a466505fece225cbf20d251f99a8c83c356 /video
parente2beeffb9255ca2d025c821363a96aa04b973d65 (diff)
downloadmpv-6609f68691677ac8ef2613a41bd8a21fd01d9cd8.tar.bz2
mpv-6609f68691677ac8ef2613a41bd8a21fd01d9cd8.tar.xz
dxva2: copy mp_image attributes to sw_img
Diffstat (limited to 'video')
-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);