Thanks, Roland's patch fixed the mupen64plus crash but not the mplayer crash, which happens in libvdpau_r300.so.1 I don't know where the source code for that file is; it's not in mesa-18.0.5 or in libvdpau-1.1.