I'm using a simple graph for video playback and EVR is my renderer. I want to force 16:9 or 16:10 aspect ratios at all times regardless of video and rendering screen native aspect ratio. Is there any way to do so?
I only managed to find IMFVideoDisplayControl::SetAspectRatioMode
but it has no option to set aspect ratio manually.
You cannot instruct EVR to override aspect ratio, it only has option to maintain AR or not. If you want to change aspect ratio of displayed video, you have to workaround methods instead:
VIDEOINFOHEADER2
structure