I assume that you used this recipe to get HW decoding? Notes on building ffmpeg and mpv to use the hardware H.264 decoder
It might be that mpv picks up new libraries instead of the custom built ones in /usr/local/lib
. You can try to ldconfig /usr/local/lib
again before running mpv
.