Update to FFmpeg new AVFrame::get_buffer2 API

AVFrame::get_buffer and AVFrame::release_buffer being deprecated

Make VAAPI and DXVA code fully conditional. No point having code in that may not be used