win-dshow: Do not allow H264 to have same priority as MJPEG

This prevents VideoFormat::Any from unintentionally selecting H264 when
MJPEG is the only other format available.

This fixes a bug where certain devices (Logitech C920 with latest
drivers) will only have H264 and MJPEG available, and using
VideoFormat::Any will then select H264 over MJPEG because it's the first
format value and has the same priority as MJPEG.  So now, MJPEG will be
prioritized over H264 instead.
This commit is contained in:
jp9000
2019-09-19 00:12:07 -07:00
parent 6f1cb5a8f8
commit eee40ec6d6