VAAPI: Add check for maximum surface count in EnsureSurfaces
Merge pull request #3010 from BtbN/vaapi-fix

VAAPI: Add check for maximum surface count in EnsureSurfaces