Fix stuttery playback for FFmpeg's directly rendered frames

This occurs for mjpeg and 9/10 bits videos

Fix submitted by slackerlinux85@gmail.com. Thank you !

Fixes #10942
Fix playback of 9/10bit h264 videos

The fashion this fix is implemented is a hack more than anything else.
It disable the following H264 profile to be decoded via the GPU:
FF_PROFILE_H264_HIGH_10
FF_PROFILE_H264_HIGH_10_INTRA
FF_PROFILE_H264_HIGH_422
FF_PROFILE_H264_HIGH_422_INTRA
FF_PROFILE_H264_HIGH_444_PREDICTIVE
FF_PROFILE_H264_HIGH_444_INTRA
FF_PROFILE_H264_CAVLC_444

regardless of the GPU acceleration method (VDPAU, VAAPI, VDA, DXVA or CrystalHD). Which at this present time is acceptable enough as no hardware handle those profiles.

A proper implementation, per decoder, would require significant changes and code cleanup to the mess that is currently avformatdecoder.cpp

Fixes #10706
ffmpeg backport: register vdpau hwaccel for mpeg12

Signed-off-by: Jean-Yves Avenard <jyavenard@mythtv.org>
Fixes #12128
Migrate vdpau decoding to FFmpeg's new hwaccel API.

This API has changed in FFmpeg 2.x, and the new code would have to be modified.

The most valuable outcome with this change, is that it fixes some occasional mpeg2 video playback corruption

Fixes #11377