mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-08 18:39:54 +00:00
d3d11decoder: Adjust alignment constraint for Xbox device
XBox doesn't seem to support 128 bytes alignment for 4K HEVC Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1339>
This commit is contained in:
parent
fe361ecc25
commit
1144cdc63a
1 changed files with 5 additions and 1 deletions
|
@ -680,7 +680,11 @@ gst_d3d11_decoder_open (GstD3D11Decoder * decoder, GstD3D11Codec codec,
|
|||
* But... where it is? */
|
||||
switch (codec) {
|
||||
case GST_D3D11_CODEC_H265:
|
||||
alignment = 128;
|
||||
/* See directx_va_Setup() impl. in vlc */
|
||||
if (!gst_d3d11_is_xbox_device (priv->device))
|
||||
alignment = 128;
|
||||
else
|
||||
alignment = 16;
|
||||
break;
|
||||
default:
|
||||
alignment = 16;
|
||||
|
|
Loading…
Reference in a new issue