Update to 2.3.12 and fix build with the latest ffmpeg version
PR: 228751 Reported by: gnuandbsdguy@gmail.com