From d35df21596bd51e203a8902260b7d03de6904acb Mon Sep 17 00:00:00 2001 From: jk Date: Fri, 25 Aug 2023 15:16:49 -0700 Subject: [avstream/sampledevicemft] Fix format change error for YUY2 (#984) --- avstream/sampledevicemft/multipinmftutils.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'avstream/sampledevicemft/multipinmftutils.cpp') diff --git a/avstream/sampledevicemft/multipinmftutils.cpp b/avstream/sampledevicemft/multipinmftutils.cpp index e4a62d52..cbd64f72 100644 --- a/avstream/sampledevicemft/multipinmftutils.cpp +++ b/avstream/sampledevicemft/multipinmftutils.cpp @@ -1292,7 +1292,10 @@ UpdateAllocatorAttributes( level = spDevice->GetFeatureLevel(); dwBindFlags |= ((level >= D3D_FEATURE_LEVEL_10_0) ? D3D11_BIND_SHADER_RESOURCE : 0); } - + else + { + dwBindFlags |= D3D11_BIND_RENDER_TARGET; + } DMFTCHECKHR_GOTO(pAttributes->SetUINT32(MF_SA_D3D11_BINDFLAGS, dwBindFlags), done); done: -- cgit v1.3.1