hwcontext_dxva2: fix handling of the mapping flags
authorAnton Khirnov <anton@khirnov.net>
Mon, 7 Nov 2016 12:42:50 +0000 (13:42 +0100)
committerAnton Khirnov <anton@khirnov.net>
Fri, 18 Nov 2016 09:31:53 +0000 (10:31 +0100)
commit9d7026574bbbe67d004a1c32911da75375692967
treea1f059a2509274e0c274dd599766cd7ef34e3f93
parent0d3176e32f351d18d6174d8b05796829a75a4c6b
hwcontext_dxva2: fix handling of the mapping flags

D3DLOCK_READONLY properly corresponds to the absence of the write flag,
not to the presence of the read flag, while D3DLOCK_DISCARD is
equivalent to the overwrite flag.
libavutil/hwcontext_dxva2.c