ffmpeg: dxva2_h264: set the correct ref frame index in the long slice struct

The latest H.264 DXVA specification states that the index in this
structure should refer to a valid entry in the RefFrameList of the picture
parameter structure, and not to the actual surface index.

Fixes H.264 DXVA2 decoding on recent Intel GPUs (tested on Sandy and Ivy)
ffmpeg: dxva2_h264: add a workaround for old intel GPUs

Old Intel GPUs expect the reference frame index to the actual surface,
instead of the index into RefFrameList as specified by the spec.

This workaround should be set when using one of the "ClearVideo" decoder
devices.
[dxva] Add support workaround for Intel H.264 VLD, no FGT, ClearVideo decoder.
[dxva] Prefer standard Microsoft H.264 device instead of Intel H.264 VLD, no FGT (ClearVideo).

This fix h264 decoding with refs > 11 on recent Intel GPUs (SNB/IVB). The latest Intel drivers for IVB/Haswell already has no support old Intel H.264 VLD, no FGT (ClearVideo) device, so this actually needs for SNB and older.
mysql: replace all "cast(foo as integer)" to "cast(foo as signed integer)" and not just the first one
Merge pull request #4378 from Montellese/mysql_integer_cast_fix

mysql: replace all "cast(foo as integer)" to "cast(foo as signed integer)" and not just the first one
Merge pull request #4340 from FernetMenta/playlist

paplayer: avoid blocking in OpenFile, call QueueNextFile instead
Merge pull request #4338 from FernetMenta/google

AE: make sure sink suppports required samplerate for AC3 and DTS
Merge pull request #4368 from jmarshallnz/music_fixes

Music fixes for .nfo files
Merge pull request #4370 from jmarshallnz/clear_items_fix

[python] ensure we lock the GUI prior to calling ClearItems. Fixes #14780
Merge pull request #4375 from FernetMenta/wma

fix assert when playing certain wma files
Merge pull request #4379 from jmarshallnz/win32_res_fix

[win32] fix size of DEVMODE struct. Fixes broken resolution switching
Merge pull request #4380 from cg110/AudioLibWarningFix

Fix compiler warning
Merge pull request #4381 from BigNoid/textbox_height

[Confluence] Textbox fixes for ok | yes/no | progress dialog
Merge pull request #4369 from jmarshallnz/skip_video_thumbs

[video] skip thumb loading earlier so we don't call CDirectory::GetDirectory()
Merge pull request #4376 from xhaggi/epg-timeline

[epg] adjust title to the left edge for the first items in timeline view
Merge pull request #4382 from jmarshallnz/fix_non_addon_scripts

[python] fix scripts run directly that aren't an add-on. fixes #14265
[iossink/osxsink] - don't deadloop in drain when device is gone - but
handle timeout
[iossink/osxsink] - fixed - condvar has to wait on the mutex - not on the singlelock
Merge pull request #4384 from Memphiz/osxbreakdrainbp

[osxsink] - fix deadloop in drain