avcodec: factorize VAAPI and VDPAU va modules
This doesn't fix any (known) pre-existing issue, but it allows to factorize VA handling between VAAPI and VPAU and use the same and new avcodec HW API: AVHWFramesContext.
The VDPAU frame allocation is now handled by avcodec.