Fix playvid & qplayvid to work with recent libav releases

libav changed its' API again (most importantly by introducing libavresample), and playvid/qplayvid didn't even compile on my system. I migrated both of them to use the new API instead, and everything seems to  work fine now.