Wrong colors on VIA UniChrome videocard
Greetings. I am using VLC 2.2.2 from repository on Xubuntu 16.04 x86. Video card VGA compatible controller: VIA Technologies, Inc. CN700/P4M800 Pro/P4M800 CE/VN800 Graphics [S3 UniChrome Pro] (rev 01) (xserver-xorg-video-openchrome driver). VLC is configured to XVideo output.
Problem: Video colors are completely wrong. Red turns blue and etc. Looks like YV12 and I420 colorspaces are confused. I can't show screenshot, because it is done correctly and PrintScreen captures black.
In X11 output everything is fine, but it is slow and with tearing. SMPlayer (mpv and mplayer) and Xine play correctly with XVideo. However, colors are also wrong in Totem. I installed VLC 3 in flatpak, there is also a problem. If I put video card Radeon 9550, then VLC plays correctly with XVideo, but I want to use integrated video card. Also, there was no problem on Linux Mint 17 based on Ubuntu 14.04 x86 (VLC from repository, I don't remember version). Problem with video driver, I think this is a small glitch, colorspaces are confused (or incorrectly transmitted). How to fix?