How to change aspect ratios (D3D11)

I’m using AppDecD3D sample project of Video_Codec_SDK_9.1.23 (with d3d11 mode). I tried to apply view port to change aspect ratio of display video but it didn’t work. It seems that cuda lib stretched video by window size. So please let me know if I miss anything.

Thanks in advance.