libx265: Update API usage