Merge pull request #3095 from FernetMenta/aefixes

AE: various fixes
fixup broken build when enabling amlplayer
[jenkins] - fixed approach for detecting the current branch once and for all (works for attached and detached heads and also for pull requests)
fixed build with amplayer, thanks rockchip
AE: add DataFormatToUsedBits to util, needed for 24 bit data formats
ActiveAE: let ffmpeg do conversion to S24XE4, fixes crackling sound on WASAPI