Backport - https://github.com/Narann/mupen64plus-video-rice/commit/b8f7ef821c13ca0efaeb627ec24511880a7beaa4