The simplest fix is often the most effective. Newer versions of VLC include updated internal codecs that handle modern H.264 variations better.
I expect a media player like VLC to support common video formats like H.264, especially considering it's a free and open-source software. The fact that it can't even play a video recorded on a modern smartphone is quite frustrating. vlc could not decode the format h264